-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
47 lines (42 loc) · 1.22 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
const { Client, IntentsBitField, Partials } = require("discord.js");
const WOK = require("wokcommands");
const { DefaultCommands } = WOK;
const path = require("path");
const dotenv = require("dotenv");
dotenv.config({ path: ".env" });
const client = new Client({
intents: [
IntentsBitField.Flags.Guilds,
IntentsBitField.Flags.GuildMessages,
IntentsBitField.Flags.GuildMembers,
IntentsBitField.Flags.DirectMessages,
IntentsBitField.Flags.MessageContent,
IntentsBitField.Flags.GuildInvites,
],
partials: [Partials.Channel],
});
client.on("ready", async () => {
console.log("running");
new WOK({
client,
commandsDir: path.join(__dirname, "./commands"),
// featuresDir: path.join(__dirname, "features"),
events: {
dir: path.join(__dirname, "events"),
},
disabledDefaultCommands: [
DefaultCommands.ChannelCommand,
DefaultCommands.CustomCommand,
DefaultCommands.Prefix,
DefaultCommands.RequiredPermissions,
DefaultCommands.RequiredRoles,
DefaultCommands.ToggleCommand,
],
cooldownConfig: {
errorMessage: "Please wait {TIME} before doing that again.",
botOwnersBypass: false,
dbRequired: 300,
},
});
});
client.login(process.env.TOKEN);