Migrated to .env

This commit is contained in:
A Bunch of Computer Nerds 2024-12-08 20:34:29 -03:00
parent fec3bc23ad
commit e3a2fbcc78
4 changed files with 5 additions and 2 deletions

View file

@ -3,10 +3,11 @@ const path = require('path');
const fs = require('fs');
const Config = require('./props/config.json');
const { isOnSpamWatch } = require('./plugins/lib-spamwatch/spamwatch.js');
require('@dotenvx/dotenvx').config({ path: "config.env" });
require('./plugins/ytdlp-wrapper.js');
// require('./plugins/termlogger.js');
const bot = new Telegraf(Config.botToken);
const bot = new Telegraf(process.env.botToken);
const MAX_RETRIES = 5;
let restartCount = 0;