Async functions #172

Merged
Sirherobrine23 merged 7 commits from AsyncFunctions into main 2021-08-27 21:49:53 +00:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 868791a158 - Show all commits

View File

@@ -23,7 +23,7 @@ const HelpAndStart = [
" /download",
" Version",
" ",
]
];
// Set Telegram Bot
const bot = new Telegraf(GetTelegramToken());

View File

@@ -52,7 +52,7 @@ module.exports.api = require("./src/api/api");
function token_register(Admin_Scoper = ["web_admin", "admin"]) {
Admin_Scoper = Array.from(Admin_Scoper).filter(scoper => /admin/.test(scoper));
const bds_token_path = path.join(bds_dir, "bds_tokens.json");
let tokens = []
let tokens = [];
if (fs.existsSync(bds_token_path)) tokens = JSON.parse(fs.readFileSync(bds_token_path, "utf8"));
// Get UUID