mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 18:54: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/',
|
'serverUrl': 'http://192.168.1.105:4445/',
|
||||||
},
|
},
|
||||||
'reconnectTimeout': 1000 * 2,
|
'reconnectTimeout': 1000 * 2,
|
||||||
|
'self_care_check_interval': 2000,
|
||||||
'discord': {
|
'discord': {
|
||||||
'token': 'OTcxNjUwNDU2NzA5Mzk4NTY5.G3lKC2._XQNTTU1Jqmaam_A0JKSe93GP1vFZvDpiXqZzA',
|
'token': 'OTcxNjUwNDU2NzA5Mzk4NTY5.G3lKC2._XQNTTU1Jqmaam_A0JKSe93GP1vFZvDpiXqZzA',
|
||||||
'servers': {
|
'servers': {
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* eslint-disable max-len */
|
/* eslint-disable max-len */
|
||||||
/* eslint-disable require-jsdoc */
|
function inject(bot, dcclient, config) {
|
||||||
function inject(bot) {
|
|
||||||
let vanish = false;
|
let vanish = false;
|
||||||
let cspy = false;
|
let cspy = false;
|
||||||
let op = true;
|
let op = true;
|
||||||
|
@ -66,7 +65,7 @@ function inject(bot) {
|
||||||
if (!vanish) bot.chat('/essentials:vanish enable');
|
if (!vanish) bot.chat('/essentials:vanish enable');
|
||||||
if (gameMode !== 1) bot.chat('/minecraft:gamemode creative @s[type=player]');
|
if (gameMode !== 1) bot.chat('/minecraft:gamemode creative @s[type=player]');
|
||||||
if (muted) bot.chat('/essentials:mute ' + bot.uuid);
|
if (muted) bot.chat('/essentials:mute ' + bot.uuid);
|
||||||
}, 2000);
|
}, config.self_care_check_interval);
|
||||||
|
|
||||||
bot.once('end', () => {
|
bot.once('end', () => {
|
||||||
clearInterval(interval);
|
clearInterval(interval);
|
||||||
|
|
Loading…
Reference in a new issue