mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 04:10:59 -05:00
Don't uselessly waste CPU cycles on disabled MPModule
This commit is contained in:
parent
6e8b52fcb3
commit
8730c36675
@ -6,7 +6,7 @@ import cron from 'node-cron';
|
||||
import Logger from './helpers/Logger.js';
|
||||
//import YTModule from './modules/YTModule.js';
|
||||
import CacheServer from './components/CacheServer.js';
|
||||
import MPModule, {refreshTimerSecs} from './modules/MPModule.js';
|
||||
// import MPModule, {refreshTimerSecs} from './modules/MPModule.js';
|
||||
import UsernameHelper from './helpers/UsernameHelper.js';
|
||||
import {Punishment, RawGatewayPacket, RawMessageDelete, RawMessageUpdate} from 'src/interfaces';
|
||||
import {readFileSync} from 'node:fs';
|
||||
@ -25,7 +25,7 @@ client.on('error', (error: Error)=>_(error, 'clientError'));
|
||||
if ((typeof process.argv[4] === 'string' && process.argv[4] === 'true') ?? null) client.on('debug', console.log);
|
||||
|
||||
// Interval timers for modules
|
||||
setInterval(async()=>await MPModule(client), refreshTimerSecs);
|
||||
// setInterval(async()=>await MPModule(client), refreshTimerSecs);
|
||||
//cron.schedule('0-5 * * * *', ()=>YTModule(client)); // Every minute from 0 through 5
|
||||
cron.schedule('5-12 * * * *', async()=>{// Every minute from 5 through 12
|
||||
const forum = client.guilds.cache.get(client.config.dcServer.id).channels.cache.get(client.config.dcServer.channels.help_forum) as Discord.ForumChannel;
|
||||
|
Loading…
Reference in New Issue
Block a user