From f773b03584783c74ebf255590151830a025e3261 Mon Sep 17 00:00:00 2001 From: ChomeNS Date: Thu, 20 Oct 2022 08:50:18 +0700 Subject: [PATCH] remove notonline --- index.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/index.js b/index.js index 4525195..9f887d9 100644 --- a/index.js +++ b/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) {