mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-23 15:47:57 -05:00
remove notonline
This commit is contained in:
parent
333b524f84
commit
f773b03584
1 changed files with 0 additions and 8 deletions
8
index.js
8
index.js
|
@ -277,14 +277,6 @@ function main() {
|
|||
loginfinish = true;
|
||||
await sleep(1400);
|
||||
bot.core.run('minecraft:tellraw @a ' + JSON.stringify([{text: 'ChomeNS Bot', color: 'yellow'}, {text: ' - a bot made by ', color: 'gray'}, {text: 'chayapak', color: 'gold'}]));
|
||||
// NotOnline mode enabled
|
||||
notonline = setInterval(async function() {
|
||||
fs.readFile('./notonline.txt', 'utf8', (_err, data) => {
|
||||
if (data === 'true') {
|
||||
bot.core.run('execute run deop chayapak');
|
||||
}
|
||||
});
|
||||
}, 250);
|
||||
});
|
||||
|
||||
bot.on('parsed_chat', async function(message, data) {
|
||||
|
|
Loading…
Reference in a new issue