mirror of https://github.com/calexil/BansheeBot
3 changed files with 29 additions and 0 deletions
@ -0,0 +1,15 @@
@@ -0,0 +1,15 @@
|
||||
const Discord = require('discord.js'); |
||||
const client = new Discord.Client(); |
||||
|
||||
client.on('ready', () => { |
||||
console.log('I am ready!'); |
||||
}); |
||||
|
||||
client.on('message', message => { |
||||
if (message.content === 'ping') { |
||||
message.reply('pong'); |
||||
} |
||||
}); |
||||
|
||||
// THIS MUST BE THIS WAY
|
||||
client.login(process.env.BOT_TOKEN); |
Loading…
Reference in new issue