mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 10:44:55 -05:00
self care config.js move
This commit is contained in:
parent
0a689fd339
commit
c494df0e94
2 changed files with 3 additions and 3 deletions
|
@ -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': {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue