forked from Mottelz/bother-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
39 lines (30 loc) · 1.05 KB
/
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
33
34
35
36
37
38
39
//https://discordapp.com/oauth2/authorize?client_id=551804985596313630&scope=bot&permissions=68608
require('dotenv').config()
const Discord = require('discord.js');
const client = new Discord.Client();
const bother = require('./bots.js');
const prefix = 'Quote '
//Once ready, notify that we're ready.
client.once('ready', () => {
console.log("We're ready for action!");
});
//Login with token
client.login(process.env.TOKEN);
//Listen for messages
client.on('message', async msg => {
if(msg.content === (prefix + 'Darcy')) {
bother.pester('darcy', (post) => msg.channel.send(post));
}
if (msg.content === (prefix + 'Eggerton')) {
bother.pester('eggerton', (post) => msg.channel.send(post));
}
if (msg.content === (prefix + 'Blat')) {
bother.pester('blat', (post) => msg.channel.send(post));
}
if (msg.content === (prefix + 'Snegal')) {
bother.pester('snegal', (post) => msg.channel.send(post));
}
if (msg.content === ('bb!stats')) {
bother.stats((post) => msg.channel.send(post))
}
})