-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.js
32 lines (25 loc) · 780 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
const Discord = require('discord.js');
const commando = require('discord.js-commando');
const Cachet = require('cachet-node').Cachet;
const bot = new commando.Client();
const cjson = require('cjson');
const config = cjson.load('./conf/config.json');
bot.registry.registerGroups([
['help', 'Help'],
['incident','Create Incident Report'],
['status','Set´s the Status for our Components'],
['tracking','Tracks our webservices'],
['test','DO NOT USE']
])
bot.registry.registerDefaults();
bot.registry.registerCommandsIn(__dirname + "/commands");
bot.on('ready', () => {
console.log('I am online :)');
});
bot.on('exit', () => {
console.log('I am offline :(');
});
bot.on('reconnecting', () => {
console.log('I am reconnecting :o')
});
bot.login(config.token);