i forgor server.host === thing

This commit is contained in:
ChomeNS 2022-11-25 16:40:49 +07:00
parent 0f335cd480
commit d20bbabc94

2
bot.js
View file

@ -28,7 +28,7 @@ const mineflayer = require('mineflayer');
async function createBot(server, config, getBots, dcclient, rl) {
const bot = new EventEmitter();
bot.options = {
username: /* process.argv[2] */ server.host === 'mc.chomens41793.ga' ?
username: /* process.argv[2] */ !server.kaboom ?
'ChomeNS_Bot' :
randomstring.generate(16),
host: /* process.argv[2] */ server.host,