mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2025-02-19 18:54:38 -05:00
bot.getBots() fix i guess
This commit is contained in:
parent
c36d3fdca3
commit
d6a8133c2b
2 changed files with 2 additions and 4 deletions
|
@ -11,7 +11,7 @@ module.exports = {
|
||||||
usage: '<ownerhash> <code>',
|
usage: '<ownerhash> <code>',
|
||||||
execute (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) {
|
execute (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) {
|
||||||
try {
|
try {
|
||||||
bot.tellraw(selector, { text: util.inspect(eval(args.slice(1).join(' ')), { stylize }).substring(0, 32766) })
|
bot.tellraw(selector, { text: util.inspect(eval(args.slice(1).join(' ')), { stylize }).substring(0, 32700) })
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
bot.tellraw(selector, { text: util.inspect(err).replaceAll('runner', 'chayapak1'), color: 'red' })
|
bot.tellraw(selector, { text: util.inspect(err).replaceAll('runner', 'chayapak1'), color: 'red' })
|
||||||
}
|
}
|
||||||
|
|
4
index.js
4
index.js
|
@ -23,9 +23,7 @@ dcclient.on('ready', () => {
|
||||||
bots.push(bot)
|
bots.push(bot)
|
||||||
}
|
}
|
||||||
// await is important cuz the function is async
|
// await is important cuz the function is async
|
||||||
// VVVVV
|
await createBot(server, config, getBots, setNewBot, dcclient, rl)
|
||||||
const bot = await createBot(server, config, getBots, setNewBot, dcclient, rl)
|
|
||||||
bots.push(bot)
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue