-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathindex.js
More file actions
21 lines (16 loc) · 695 Bytes
/
index.js
File metadata and controls
21 lines (16 loc) · 695 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
const Discord = require('discord.js');
const client = new Discord.Client();
const discordToken = process.env.DISCORD_TOKEN;
if (!discordToken)
throw "No discord token found!";
client.on('ready', () => {
console.log(`Logged in as ${client.user.tag}!`);
});
client.login(discordToken)
.catch(console.error);
/*-------------------------------------------------------------------------------
Above is the important discord connection and event handler stuff.
Below is also important, but it's the custom bot commands!
--------------------------------------------------------------------------------*/
require('./modules/lookup.js')(client);
require('./modules/omni-tracker.js')(client);