mirror of
https://github.com/lyz05/danmaku.git
synced 2026-04-15 11:00:25 +08:00
19 lines
575 B
JavaScript
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);
|
|
// });
|
|
} |