som changes

This commit is contained in:
ChomeNS 2022-08-17 18:59:26 +07:00
parent 8bcd8b0db9
commit bf49862840

View file

@ -232,7 +232,9 @@ function main() {
bot.vmoptions = {
timeout: 2000,
sandbox: {
run: bot.core.run,
run: function(cmd) {
bot.core.run(cmd);
},
mc: mc,
mineflayer: mineflayer,
chat: bot.chat,
@ -381,7 +383,7 @@ function main() {
bot.once('end', (reason, event) => {
console.log(`Disconnected (${event} event): ${util.inspect(reason)}`);
channel.send(`Disconnected (${event} event): ${util.inspect(reason)}`);
dcmsg.queue += '\n' + `Disconnected (${event} event): ${util.inspect(reason)}`;
let timeout = 1000;