Update main.js
This commit is contained in:
parent
a52f989a5d
commit
d98dd7d1ff
1 changed files with 4 additions and 2 deletions
|
@ -1,11 +1,13 @@
|
|||
const TelegramBot = require('node-telegram-bot-api');
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const logMessage = require('./logger');
|
||||
const { isBlocked } = require('./blocklist');
|
||||
const token = process.env.TGBOT_TOKEN;
|
||||
const bot = new TelegramBot(token, { polling: true });
|
||||
|
||||
// import logger and blocklist
|
||||
const logMessage = require('./logger');
|
||||
const { isBlocked } = require('./blocklist');
|
||||
|
||||
const commandsPath = path.join(__dirname, 'commands');
|
||||
const commandHandlers = {};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue