remove notonline

This commit is contained in:
ChomeNS 2022-10-20 08:50:18 +07:00
parent 333b524f84
commit f773b03584

View file

@ -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) {