-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmarkt.js
30 lines (26 loc) · 860 Bytes
/
markt.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
const { Client, GatewayIntentBits, Partials } = require("discord.js");
Client.setMaxListeners(13)
const settings = require("./settings.json");
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildPresences,
GatewayIntentBits.GuildMessageReactions,
GatewayIntentBits.DirectMessages,
GatewayIntentBits.MessageContent
],
partials: [Partials.Channel, Partials.Message, Partials.User, Partials.GuildMember, Partials.Reaction]
});
module.exports = client;
require("./events/message.js")
require("./events/ready.js")
const express = require("express");
const app = express();
const http = require("http");
app.get("/", (request, response) => {
response.sendStatus(200);
});
app.listen(1024);
client.login(settings.token);
console.log("Bot is online");