mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 10:44:55 -05:00
i fixed self_care
This commit is contained in:
parent
87fbc85491
commit
24b1916e06
1 changed files with 7 additions and 7 deletions
|
@ -9,20 +9,20 @@ function inject(bot) {
|
|||
let muted = false;
|
||||
|
||||
bot.on('parsed_chat', (data) => {
|
||||
if (data.toString()=='You are now completely invisible to normal users, and hidden from in-game commands.') vanish = true;
|
||||
if (data.toString()==='You are now completely invisible to normal users, and hidden from in-game commands.') vanish = true;
|
||||
if (!bot.visibility) {
|
||||
if (data.toString().startsWith('Vanish for ') && data.toString().endsWith('disabled')) vanish = false;
|
||||
}
|
||||
if (data.toString()=='Successfully enabled CommandSpy') cspy = true;
|
||||
if (data.toString()=='Successfully disabled CommandSpy') cspy = false;
|
||||
if (data.toString()=='You now have the tag: [ChomeNS Bot]') {
|
||||
if (data.toString()==='Successfully enabled CommandSpy' || data.toString()===' Enabled your command spy.') cspy = true;
|
||||
if (data.toString()==='Successfully disabled CommandSpy' || data.toString()===' Disabled your command spy.') cspy = false;
|
||||
if (data.toString()==='You now have the tag: [ChomeNS Bot]') {
|
||||
prefix = true;
|
||||
return;
|
||||
}
|
||||
if (data.toString().startsWith('You no longer have a tag')) prefix = false;
|
||||
if (data.toString().startsWith('You now have the tag: ')) prefix = false;
|
||||
if (data.toString().startsWith('You have been muted')) muted = true;
|
||||
if (data.toString()=='You have been unmuted.') muted = false;
|
||||
if (data.toString()==='You have been unmuted.') muted = false;
|
||||
});
|
||||
|
||||
bot._client.on('entity_status', (data) => {
|
||||
|
@ -61,10 +61,10 @@ function inject(bot) {
|
|||
}
|
||||
|
||||
if (bot.options.host!=='mc.chomens41793.ga') {
|
||||
if (!vanish) bot.chat('/essentials:vanish enable');
|
||||
if (!cspy) bot.chat('/commandspy:commandspy on');
|
||||
if (!prefix) bot.chat('/extras:prefix &8[&eChomeNS Bot&8]');
|
||||
}
|
||||
if (!cspy) bot.chat('/commandspy:commandspy on');
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue