self care config.js move

This commit is contained in:
ChomeNS 2022-10-29 14:14:49 +07:00
parent 0a689fd339
commit c494df0e94
2 changed files with 3 additions and 3 deletions

View file

@ -15,6 +15,7 @@ module.exports = {
'serverUrl': 'http://192.168.1.105:4445/',
},
'reconnectTimeout': 1000 * 2,
'self_care_check_interval': 2000,
'discord': {
'token': 'OTcxNjUwNDU2NzA5Mzk4NTY5.G3lKC2._XQNTTU1Jqmaam_A0JKSe93GP1vFZvDpiXqZzA',
'servers': {

View file

@ -1,6 +1,5 @@
/* eslint-disable max-len */
/* eslint-disable require-jsdoc */
function inject(bot) {
function inject(bot, dcclient, config) {
let vanish = false;
let cspy = false;
let op = true;
@ -66,7 +65,7 @@ function inject(bot) {
if (!vanish) bot.chat('/essentials:vanish enable');
if (gameMode !== 1) bot.chat('/minecraft:gamemode creative @s[type=player]');
if (muted) bot.chat('/essentials:mute ' + bot.uuid);
}, 2000);
}, config.self_care_check_interval);
bot.once('end', () => {
clearInterval(interval);