mirror of
https://github.com/lyz05/danmaku.git
synced 2026-07-05 03:36:08 +08:00
21 lines
578 B
JavaScript
21 lines
578 B
JavaScript
require("dotenv").config({path: "../.env"});
|
|
const memory = require("../utils/memory");
|
|
const hkaliyun = require("./bot/hkaliyun.js");
|
|
const airportsub = require("./bot/airportsub.js");
|
|
|
|
const 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.deleteWebHook();
|
|
// bot.getWebHookInfo().then((webhookInfo) => {
|
|
// console.log('Webhook info:', webhookInfo);
|
|
// });
|
|
}
|