1
0
mirror of https://github.com/franjsco/trackmyd-bot synced 2025-02-17 20:10:43 +01:00

add routing messages

This commit is contained in:
Francesco Esposito 2019-02-19 14:29:57 +01:00
parent 9fa9a49d26
commit 3a5e51c5e2

View File

@ -12,5 +12,25 @@ bot.on('/start', (msg) => {
bot.sendMessage(msg.from.id, `hello ${name}`); bot.sendMessage(msg.from.id, `hello ${name}`);
}); });
bot.on('/help', (msg) => {
bot.sendMessage(msg.from.id, 'help template');
});
bot.on('/list', (msg) => {
bot.sendMessage(msg.from.id, 'list template');
});
bot.on('/position', (msg) => {
bot.sendMessage(msg.from.id, 'position template');
});
bot.on('/add', (msg) => {
bot.sendMessage(msg.from.id, 'add');
});
bot.on('/remove', (msg) => {
bot.sendMessage(msg.from.id, 'remove');
});
bot.start(); bot.start();