Skip to content

Commit

Permalink
Merge pull request #9 from epfl-dojo/feature/start
Browse files Browse the repository at this point in the history
[ADD] /start command
  • Loading branch information
nicolasreymond authored Dec 13, 2019
2 parents eff2d96 + dc0b567 commit 6c82098
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
const TeleBot = require('telebot');
const Secrets = require('./secrets.json')
const Secrets = require('./secrets.json');
const bot = new TeleBot(Secrets.BOT_TOKEN);
bot.on('text', (msg) => msg.reply.text(msg.text));

bot.on(['/start'], (msg) => {

msg.reply.text("Hello! I am Club Mate Bot, I'm here to help you manage your mate consumption. Please type '/help' to begin!")

});

bot.start();

0 comments on commit 6c82098

Please sign in to comment.