Browse Source

make it work3

pull/1/head
calexil 5 years ago
parent
commit
2f254e1199
  1. 5
      bot.js
  2. 2
      bot.js~

5
bot.js

@ -17,6 +17,11 @@ client.on('message', message => { @@ -17,6 +17,11 @@ client.on('message', message => {
}
});
client.on('message', message => {
if (message.content === 'best girl?') {
message.reply('Big Band :clappa:');
}
});
// THIS MUST BE THIS WAY
client.login(process.env.BOT_TOKEN);

2
bot.js~

@ -17,8 +17,6 @@ client.on('message', message => { @@ -17,8 +17,6 @@ client.on('message', message => {
}
});
setTimeout( function ( ) { alert( "moo" ); }, 10000 ); //displays msg in 10 seconds
// THIS MUST BE THIS WAY
client.login(process.env.BOT_TOKEN);

Loading…
Cancel
Save