Using CAP REQ :twitch.tv/tags?

My issue
When I use CAP REQ :twitch.tv/tags the onMessage event in PircBot never gets called…

Why I need the tags
I want to use the tags so I can get the color of the users name on twitch. I want this so I can use their colors in my bots chat tab.

Any help would be nice.
Thanks in advance.

Pircbot doesn’t support tags so it so you’ll have to add support for it yourself into the handleLine function in Pircbot.java.

I’m not sure about PircbotX since I haven’t used that framework much.

Figured I would have to… Would splitting the handleLine be the easiest way to get the message?

I believe that’s the path I sent with my applications that use Pircbot. Remove tags from line, split into Map which is now included as a new parameter in onMessage, let the original code handle the rest of the line processing as it originally did since tags are no longer there.

Okay so clear the tags then do super(newStringWithoutTags)?

I don’t use super which I don’t think would work correctly anyway. I just remove the tags from the original line first in handleLine and store them in a string which is then passed as an additional parameter in onMessage further down in that function.

https://bitbucket.org/bashtech/geobot/src/a5c5176ef42c4a0ea7fa221827116491f1d310b5/src/main/java/org/jibble/pircbot/PircBot.java?at=master&fileviewer=file-view-default#PircBot.java-925

PircbotX supports tags.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.