mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 10:44:55 -05:00
som changes
This commit is contained in:
parent
8bcd8b0db9
commit
bf49862840
1 changed files with 4 additions and 2 deletions
6
index.js
6
index.js
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue