-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
21 lines (15 loc) · 898 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* eslint no-console: 0 */
const Discord = require('discord.js');
const client = new Discord.Client();
client.config = require('./config.json');
client.log = require('./functions/log.js');
client.commands = new Discord.Collection();
client.commands.set('ping', require('./commands/ping.js'));
client.commands.set('serverinfo', require('./commands/serverinfo.js'));
client.commands.set('twitter', require('./commands/twitter.js'));
client.on('message', message => require('./events/message.js')(client, message));
client.on('guildCreate', guild => require('./events/guildCreate.js')(client, guild));
client.on('ready', () => require('./events/ready.js')(client));
client.on('guildMemberAdd', member => require('./events/guildMemberAdd.js')(client, member));
client.on('guildMemberRemove', member => require('./events/guildMemberRemove.js')(client, member));
client.login(client.config.token);