You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this handler the bot does indeed work when going through the if-statement, but user being defined in the if-statement causes it to not work. What I did to fix this was putting let user = ""; before the if-statement, and then just having user = message.split(' ')[1]; on the inside.
This could be an error with versions I'm not sure, but I figured I should let you know so that it can be fixed as it's relatively simple.
The text was updated successfully, but these errors were encountered:
I was confused for the longest time why the bot kept crashing, found where the error was in the logs and started testing.
Hypixel-Chat-Bot/src/minecraft/handlers/ChatHandler.js
Lines 202 to 212 in 6ebe244
In this handler the bot does indeed work when going through the if-statement, but
user
being defined in the if-statement causes it to not work. What I did to fix this was puttinglet user = "";
before the if-statement, and then just havinguser = message.split(' ')[1];
on the inside.This could be an error with versions I'm not sure, but I figured I should let you know so that it can be fixed as it's relatively simple.
The text was updated successfully, but these errors were encountered: