Browse Source

commands

tags/Beta0.1
calexil 1 year ago
parent
commit
4ba8e97933
3 changed files with 20 additions and 7 deletions
  1. 3
    3
      Commands
  2. 13
    0
      bot.js
  3. 4
    4
      bot.js~

+ 3
- 3
Commands View File

@@ -8,9 +8,9 @@ You say: best girl, best girl? best grill, best grill?
I say: Big Band...

You say: hi
I say: hello there, you can see my commands here:
I say: hello there, you can see my commands here: https://github.com/calexil/BansheeBot/blob/master/Commands

You say: ping
I say: pong
You say: commands
I say: you can see my commands here: https://github.com/calexil/BansheeBot/blob/master/Commands



+ 13
- 0
bot.js View File

@@ -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);

+ 4
- 4
bot.js~ View File

@@ -19,25 +19,25 @@ client.on('message', message => {

client.on('message', message => {
if (message.content === 'best girl?') {
message.reply('Big Band :clappa: ');
message.reply('Big Band...');
}
});

client.on('message', message => {
if (message.content === 'best girl') {
message.reply('Big Band :clappa: ');
message.reply('Big Band...');
}
});

client.on('message', message => {
if (message.content === 'best grill?') {
message.reply('Big Band :clappa: ');
message.reply('Big Band...');
}
});

client.on('message', message => {
if (message.content === 'best grill') {
message.reply('Big Band :clappa: ');
message.reply('Big Band...');
}
});


Loading…
Cancel
Save