Repository navigation
Expand file tree
/
Copy pathindex.js
More file actions
71 lines (67 loc) · 1.85 KB
/
Copy pathindex.js
File metadata and controls
71 lines (67 loc) · 1.85 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
const DiscordJS = require('discord.js')
const WOKCommands = require('wokcommands')
const path = require('path')
require('dotenv').config();
const { Intents } = DiscordJS
const client = new DiscordJS.Client({
intents: [
Intents.FLAGS.GUILDS,
Intents.FLAGS.GUILD_MESSAGES,
Intents.FLAGS.GUILD_MESSAGE_REACTIONS,
],
})
/*
To-Do:
- animal spawn time with weather condition check
- lodestone lookup????
- change database structure: duties in one, filter by type (e.g. Dungeon, Raid. etc); classes in one, filter by type (e.g. Tank, Healer, etc)
*/
client.on('ready', async () => {
const dbOptions = {
keepAlive: true
}
new WOKCommands(client, {
commandsDir: path.join(__dirname, 'commands'),
featuresDir: path.join(__dirname, 'features'),
messagesPath: '',
typeScript: false,
showWarns: true,
delErrMsgCooldown: -1,
defaultLangauge: 'english',
ignoreBots: false,
ephemeral: false,
dbOptions: {
// These are the default options
keepAlive: true
},
testServers: ['848610258306072576'],
botOwners: ['140508899064283136'],
disabledDefaultCommands: [
// 'help',
// 'command',
// 'language',
// 'prefix',
// 'requiredrole',
// 'channelonly'
],
mongoUri: process.env.URI,
debug: false
})
.setDefaultPrefix('$')
// Used for the color of embeds sent by WOKCommands
.setColor(0xff0000)
})
client.login(process.env.TOKEN)
/*
SUB_COMMAND 1
SUB_COMMAND_GROUP 2
STRING 3
INTEGER 4 Any integer between -2^53 and 2^53
BOOLEAN 5
USER 6
CHANNEL 7 Includes all channel types + categories
ROLE 8
MENTIONABLE 9 Includes users and roles
NUMBER 10 Any double between -2^53 and 2^53
ATTACHMENT 11 attachment object
*/