-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
28 lines (23 loc) · 757 Bytes
/
Copy pathindex.js
File metadata and controls
28 lines (23 loc) · 757 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
require('dotenv').config()
const logger = require('./src/services/logger')
const bot = require('./src/services/telegram')
// Prototypes
require('./src/functions/prototypes')
// Comandos
require('./src/commands/profittrailer/saldo')
require('./src/commands/profittrailer/bags')
require('./src/commands/profittrailer/entradas')
require('./src/commands/binance/sell')
require('./src/commands/configs/list')
require('./src/commands/configs/switch')
require('./src/commands/calculadora')
bot.telegram.getMe()
.then((botInfo) => {
logger.info(`Bot username: @${botInfo.username}`)
bot.options.username = botInfo.username
return botInfo
}).then((botInfo) => {
bot.startPolling()
logger.info('Telegram polling')
return botInfo
})