mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 10:44:55 -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>',
|
||||
execute (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) {
|
||||
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) {
|
||||
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)
|
||||
}
|
||||
// await is important cuz the function is async
|
||||
// VVVVV
|
||||
const bot = await createBot(server, config, getBots, setNewBot, dcclient, rl)
|
||||
bots.push(bot)
|
||||
await createBot(server, config, getBots, setNewBot, dcclient, rl)
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue