-
-
Notifications
You must be signed in to change notification settings - Fork 864
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bad parsing of message #3316
Comments
update: its because of the nochatreports plugin |
More updates: |
This seems intentional, as the server is sending the message as a system message and not a user chat message. The bot.on('message', function (msg) {
console.dir(msg, { depth: null })
}) |
Can you confirm that the provided code works? |
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: