Browse Source

make it work

pull/1/head
calexil 5 years ago
parent
commit
87654519af
  1. 6
      bot.js
  2. 15
      bot.js~

6
bot.js

@ -11,5 +11,11 @@ client.on('message', message => { @@ -11,5 +11,11 @@ client.on('message', message => {
}
});
client.on('timer', message => {
if (timeStamp.content === '>0') {
message.reply('--banshee-query now-playing');
}
});
// THIS MUST BE THIS WAY
client.login(process.env.BOT_TOKEN);

15
bot.js~

@ -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…
Cancel
Save