Input parser and Unknown Events

27 views
Skip to first unread message

Fallout301

unread,
Jun 26, 2016, 4:09:28 PM6/26/16
to pircbotx
So I'm working on a twitch bot, and I'm trying to get the output of the "userstate" event, but I'm not sure how exactly. the InputParser sees: "@badges=broadcaster/1;color=#FF0000;display-name=Fallbot301;emote-sets=0;mod=0;subscriber=0;turbo=0;user-type= :tmi.twitch.tv USERSTATE #fallbot301"

Meanwhile, the ThreadedListenerManager sees: "Recieved event UnknownEvent(line=:tmi.twitch.tv USERSTATE #fallbot301)"

so ergo when i call event.getLine(); all i get is UnknownEvent(line=:tmi.twitch.tv USERSTATE #fallbot301)

So my question is, how do i get the "@badges" part when the event fires? sorry if that sounds like a stupid question, just this is one of my more.. adventurous projects to teach myself something new.

Javier Diaz-Cano

unread,
Aug 29, 2016, 3:42:56 AM8/29/16
to pircbotx
I'm not sure if you fixed it already but you can see my last commits on https://github.com/jdiazcano/pircbotx because I am working in exactly the same thing
Reply all
Reply to author
Forward
0 new messages