Browse Source

commands

pull/1/head
calexil 5 years ago
parent
commit
f9e9f1b736
  1. 4
      bot.js
  2. 13
      bot.js~

4
bot.js

@ -43,13 +43,13 @@ client.on('message', message => { @@ -43,13 +43,13 @@ client.on('message', message => {
client.on('message', message => {
if (message.content === 'hi') {
message.reply('hello there, you can see my commands here: https://github.com/calexil/BansheeBot/blob/master/Commands');
message.reply('hello there, you can see my commands here: https://github.com/calexil/BansheeBot/blob/master/Commands.md');
}
});
client.on('message', message => {
if (message.content === 'commands') {
message.reply('you can see my commands here: https://github.com/calexil/BansheeBot/blob/master/Commands');
message.reply('you can see my commands here: https://github.com/calexil/BansheeBot/blob/master/Commands.md');
}
});

13
bot.js~

@ -41,5 +41,18 @@ client.on('message', message => { @@ -41,5 +41,18 @@ client.on('message', message => {
}
});
client.on('message', message => {
if (message.content === 'hi') {
message.reply('hello there, you can see my commands here: https://github.com/calexil/BansheeBot/blob/master/Commands');
}
});
client.on('message', message => {
if (message.content === 'commands') {
message.reply('you can see my commands here: https://github.com/calexil/BansheeBot/blob/master/Commands');
}
});
// THIS MUST BE THIS WAY
client.login(process.env.BOT_TOKEN);

Loading…
Cancel
Save