-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.js
30 lines (27 loc) · 977 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
var Discord = require('discord.js-commando');
var auth = process.env.TOKEN;
// Initialize Discord Bota
var bot = new Discord.Client({
token: auth,
autorun: true
});
// define register groups
bot.registry.registerGroup('games');
bot.registry.registerGroup('embeds');
bot.registry.registerGroup('channels');
bot.registry.registerGroup('spiders');
bot.registry.registerGroup('shoes');
bot.registry.registerDefaults();
bot.registry.registerCommandsIn(__dirname + '/commands');
bot.registry.registerCommandsIn(__dirname + '/commands/shoes');
bot.registry.registerCommandsIn(__dirname + '/commands/samples');
// login discord
bot.login(auth);
// ready info
bot.on('ready', function (evt) {
console.log('---------------------------');
console.log('FanFan-DC-Bot is Connected!');
console.log('---------------------------');
var myDate = new Date();
bot.channels.get('532531663486320650').send('channel one - FanFanbot is online now!\n' + myDate.toLocaleString());
});