Files
danmaku/tgbot/bot.js
2022-11-10 10:58:42 +08:00

19 lines
575 B
JavaScript

require('dotenv').config({path: '../.env'});
const memory = require('../utils/memory');
const hkaliyun = require('./bot/hkaliyun.js');
const airportsub = require('./bot/airportsub.js');
bots = [
hkaliyun(process.env.TELEGRAM_TOKEN_HKALIYUN),
airportsub(process.env.TELEGRAM_TOKEN_AIRPORTSUB),
];
console.log('bot.js loaded');
memory()
for (const bot of bots) {
bot.getMe().then((botInfo) => {
console.log('Bot info:', botInfo);
});
// bot.getWebHookInfo().then((webhookInfo) => {
// console.log('Webhook info:', webhookInfo);
// });
}