-
Notifications
You must be signed in to change notification settings - Fork 0
/
bot.js
29 lines (26 loc) · 894 Bytes
/
bot.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
const Discord = require('discord.js');
const client = new Discord.Client();
client.on('ready', () => {
console.log(`Logged in as ${client.user.tag}!`);
});
var prefix = "!"
client.on('message', msg => {
if (msg.content === prefix + 'ping') {
msg.reply('Pong!');
}
if (msg.content === prefix + 'help') {
msg.reply('COMMANDS:');
msg.reply('!ping,');
msg.reply('hey');
msg.reply('!moderator');
msg.reply('new commands and features will come soon. Thanks for using, our website: https://www.funnybot.tk');
console.log('Help Command Pressed in' + msg.guild.name);
}
if (msg.content === 'hey'){
msg.reply('Hows it going??? Welcome');
}
if (msg.content === prefix + 'moderator'){
msg.reply('To be a Moderator, You need to fill in this form: https://goo.gl/forms/T7Lrh48JFQKv9wNY2');
}
});
client.login(process.env.BOT_TOKEN);