AardWolf / MHTimerBot

Discord bot that understands mousehunt timers
MIT License
7 stars 12 forks source link

minluck not handling something right #244

Closed AardWolf closed 1 year ago

AardWolf commented 2 years ago
[2022-01-11T16:50:24.718Z] Error executing dynamic command minluck TypeError: Cannot read property 'toLowerCase' of unde
    at Object.doMINLUCK [as execute] (/home/user/MHTimerBot/src/commands/minluck.js:69:39)
    at parseUserMessage (/home/user/MHTimerBot/src/MHTimer.js:614:44)
    at Client.<anonymous> (/home/user/MHTimerBot/src/MHTimer.js:265:21)
    at Client.emit (node:events:394:28)
    at MessageCreateAction.handle (/home/user/MHTimerBot/node_modules/discord.js/src/client/actions/MessageCreate.js:23:
    at Object.module.exports [as MESSAGE_CREATE] (/home/user/MHTimerBot/node_modules/discord.js/src/client/websocket/han
    at WebSocketManager.handlePacket (/home/user/MHTimerBot/node_modules/discord.js/src/client/websocket/WebSocketManage
    at WebSocketShard.onPacket (/home/user/MHTimerBot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:443
    at WebSocketShard.onMessage (/home/user/MHTimerBot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:30
    at WebSocket.onMessage (/home/user/MHTimerBot/node_modules/ws/lib/event-target.js:132:16)
tehhowch commented 2 years ago

Seems like a token list of length 0 got passed in

AardWolf commented 2 years ago

Might be related to the fact we allow -mh minluck -d

AardWolf commented 1 year ago

This got fixed at some point!