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
This seems intentional, as the server is sending the message as a system message and not a user chat message. The chat event is specifically checking for user chat messages. message and messagestr are the same event but with different parameter arrangements. You should listen to message which will capture both system and user messages and extract the messages out from there.
Versions
Detailed description of a problem
if you enter a dot in the message either of this happens:
What did you try yet?
changing chat.js bot.on('playerChat') code. parsing messages only from .fromNotch method, didnt work
Your current code
Expected behavior
normally parsed messages
Additional context
Actual in-game chat:
[sleepobot] If it ain't drillable, it's probably flammable.
[sleepooo] Hello
[sleepooo] Hello.
[sleepooo] Hello1.Hello2.Hello3
What's happening in the cmd:
// first message
ONMESSAGE flammable.
MESSAGESTR flammable.
// second message
ONMESSAGE Hello
MESSAGESTR Hello
USERNAME sleepooo MESSAGE Hello
// third message
ONMESSAGE Hello.
MESSAGESTR Hello.
// fourth message
ONMESSAGE Hello1.Hello2.Hello3
MESSAGESTR Hello1.Hello2.Hello3
The text was updated successfully, but these errors were encountered: