mirror of
https://github.com/abocn/TelegramBot.git
synced 2025-04-28 17:15:57 +00:00
Update main.js
This commit is contained in:
parent
a52f989a5d
commit
d98dd7d1ff
@ -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…
x
Reference in New Issue
Block a user