-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.js
More file actions
27 lines (23 loc) · 741 Bytes
/
index.js
File metadata and controls
27 lines (23 loc) · 741 Bytes
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
const env = require('dotenv').config().parsed;
const Discord = require('discord.js');
const client = new Discord.Client();
const discordHelper = require('./helpers/discord-helper.js');
client.on('ready', console.log('bot is ready!'));
client.on('message', (message) => {
if (message.author.bot) return;
switch (message.content) {
case '!ping':
message.reply('Pong!');
break
case '!weeb':
message.reply('Elian is a weeb');
break
case '!duck':
discordHelper.sendEmbed(message);
break;
default:
console.log(message.content); // gg breaking Discord ToS 10/10
break;
}
});
client.login(env.BOT_TOKEN);