-
Notifications
You must be signed in to change notification settings - Fork 12
/
index.js
36 lines (36 loc) · 971 Bytes
/
index.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
31
32
33
34
35
36
const kingman = require("./host/keep_work.js"),
{
Collection,
Client,
Intents
} = require("discord.js"),
client = new Client({
shards: "auto",
allowedMentions: {
parse: [ ],
repliedUser: false,
},
partials: ['MESSAGE', 'CHANNEL', 'REACTION'],
intents: [
Intents.FLAGS.GUILDS,
Intents.FLAGS.GUILD_MEMBERS,
Intents.FLAGS.GUILD_VOICE_STATES,
Intents.FLAGS.GUILD_MESSAGES,
Intents.FLAGS.GUILD_MESSAGE_REACTIONS,
],
});
fs = require('fs'),
kingman();
const TOKEN_BOT = process.env['KM_TOKEN'],
config = require('./localdb/kingman.json'),
PREFIX = config.prefix;
client.commands = new Collection(),
client.eventss = new Collection(),
client.aliases = new Collection(),
client.invites = new Collection(),
client.slachCommands = new Collection();
client.on("error", console.error);
["command", "events", "intration"].forEach(p => {
require(`./handler/${p}`)(client);
});
client.login(TOKEN_BOT)