PetyXbron / minecraft-bot

Informational Discord bot for your Minecraft server
https://mb.petyxbron.cz/
GNU General Public License v3.0
67 stars 28 forks source link

BUG #17

Closed blaze534 closed 1 year ago

blaze534 commented 1 year ago

minecraft-bot-main\slashes\status.js:126 if (warns) console.log(${bot.emotes.warn} + warn(Error when using command ${module.exports.config.name}! Error:\n) + error); ^

TypeError: Cannot read properties of undefined (reading 'name') at C:\Users\Utente\Desktop\BOTS\minecraft-bot-main\slashes\status.js:126:119 at processTicksAndRejections (node:internal/process/task_queues:96:5)

i was thinking it was my bug but when i reinstalled it its the same @PetyXbron

PetyXbron commented 1 year ago

Yeah, this is a project problem. Mistake in the code. I will try to fix it in a new update.

blaze534 commented 1 year ago

ok thanks

blaze534 commented 1 year ago

when is gonna be out the new update?

PetyXbron commented 1 year ago

when is gonna be out the new update?

I will of course try to update it as soon as possible. Maybe tomorrow, but unfortunately I can't guarantee it.

PetyXbron commented 1 year ago

I know why this bug was not reported earlier. This log only shows when you have warns option in your config enabled and probably most of the users don't have it enabled. However, it is fixed. Please updated your code. Version [1.6.8] has updated list.js and status.js in /slashes, so your process should not be killed again by this error.