-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.js
More file actions
45 lines (37 loc) · 1.21 KB
/
index.js
File metadata and controls
45 lines (37 loc) · 1.21 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
// Define discord stuff
const config = require('./config.json');
const Prefix = require("./prefix");
const { AkairoClient, CommandHandler, InhibitorHandler, ListenerHandler } = require('discord-akairo');
const d = new Date();
const n = d.getTime();
module.exports = n;
class ShadowBot extends AkairoClient {
constructor() {
super({
ownerID: '116318819298967561'
}, {
disableMentions: 'everyone'
});
this.commandHandler = new CommandHandler(this, {
directory: './commands/',
prefix: () => {
return Prefix.getPrefix();
},
allowMention: true
});
this.inhibitorHandler = new InhibitorHandler(this, {
directory: './inhibitors/'
});
this.listenerHandler = new ListenerHandler(this, {
directory: './listeners/'
});
this.commandHandler.loadAll();
this.commandHandler.useInhibitorHandler(this.inhibitorHandler);
this.inhibitorHandler.loadAll();
this.commandHandler.useListenerHandler(this.listenerHandler);
this.listenerHandler.loadAll();
}
}
// Start!
const client = new ShadowBot();
client.login(config.token);