-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmain.js
More file actions
31 lines (22 loc) · 777 Bytes
/
main.js
File metadata and controls
31 lines (22 loc) · 777 Bytes
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
require('module-alias/register')
const path = require('path')
const Commando = require('discord.js-commando')
const config = require('@root/config.js')
const loadFeatures = require('@root/features/load-features')
const client = new Commando.CommandoClient({
owner: config.ownerID,
commandPrefix: config.prefix
})
client.on('ready', async () => {
client.registry
.registerGroups([
['moderation', 'Moderation commands'],
['applications', 'Application Commands'],
])
.registerDefaults()
.registerCommandsIn(path.join(__dirname, 'cmds'))
loadFeatures(client)
console.log('The client is ready!')
})
module.exports.client = client
client.login(config.token)