This commit is contained in:
ChomeNS 2022-12-09 17:54:02 +07:00
parent e6b64c2386
commit 5c15e0dc4b

1
bot.js
View file

@ -27,6 +27,7 @@ const mineflayer = require('mineflayer')
*/
async function createBot (server, config, getBots, setNewBot, dcclient, rl) {
const bot = new EventEmitter()
bot.setMaxListeners(Infinity) // is this bad code?
bot.options = {
username: !server.kaboom
? 'ChomeNS_Bot'