Most of the messages from the chat server were successfully
received using prcbotx. However, I have confirmed that certain messages
are not printed from the Listener.
The following are examples.
raw message :
@badges=;color=#FF69B4;display-name=bluewarn;emotes=;id=09b03b15-b201-411c-80c5-1585231ff05b;mod=0;room-id=113164795;subscriber=0;tmi-sent-ts=1536149483262;turbo=0;user-id=116781855;user-type=:bluewarn!blue...@bluewarn.tmi.twitch.tv
PRIVMSG #bluewarn:helloworld!
In this case, the value was received through the onMessage of the Lister. (Successful)
The problem message is:
@badges=;color=#1E90FF;display-name=Stay_Hydrated_Bot;emotes=869375:9-20;id=ca45bd3b-3aa0-4565-905d-8d6dcfa23cff;mod=0;room-id=82223459;subscriber=0;tmi-sent-ts=1536226654742;turbo=0;user-id=183484964;user-type= :stay_hydrated_bot!stay_hydrated_bot@stay_hydrated_bot.tmi.twitch.tv PRIVMSG #bluewarn: ACTION @remguri stayhyBottle You've been live for just over 6 hours. By this point in your broadcast you should have consumed at least 24oz (720mL) of water to maintain optimum hydration.
Because of the string ACTION in the message, the parser in the pircbotx seems to send the message onAction(), not onMessage()
Message into onAction() function and Twitch irc tag parsing is not possible.
Delete the ACTION command, and I tried to process it in the onUnknown() function but found no way.
How do I get that second message into the onMessage() function?
Or is there any way to parse messages directly?