mirror of
https://github.com/franjsco/trackmyd-bot
synced 2025-06-05 22:19:29 +02:00
add server.js
This commit is contained in:
16
server.js
Normal file
16
server.js
Normal file
@ -0,0 +1,16 @@
|
||||
const Telebot = require('telebot');
|
||||
const config = require('./config');
|
||||
|
||||
const bot = new Telebot({
|
||||
token: config.app.tokenBot,
|
||||
usePlugins: ['askUser'],
|
||||
});
|
||||
|
||||
|
||||
bot.on('/start', (msg) => {
|
||||
const name = 'user';
|
||||
bot.sendMessage(msg.from.id, `hello ${name}`);
|
||||
});
|
||||
|
||||
|
||||
bot.start();
|
Reference in New Issue
Block a user