# Python Twitch Bot using Get Started code IRC library can't parse Tags?

**URL:** <https://staging-discuss.dev.twitch.com/t/python-twitch-bot-using-get-started-code-irc-library-cant-parse-tags/13797>\
**Category:** Chat and IRC\
**Created:** [January 17, 2018, 10:14am UTC](https://staging-discuss.dev.twitch.com/t/python-twitch-bot-using-get-started-code-irc-library-cant-parse-tags/13797 "2018-01-17T10:14:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheJackalMan](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/thejackalman/32/3979_2.png) [@TheJackalMan](https://staging-discuss.dev.twitch.com/u/TheJackalMan)\
**Post date:** [January 17, 2018, 10:14am UTC](https://staging-discuss.dev.twitch.com/t/python-twitch-bot-using-get-started-code-irc-library-cant-parse-tags/13797/1 "2018-01-17T10:14:53Z")

</div>

So I’m trying to get the USERNOTICE for subscriptions and utilizing the irc library that the Python Twitch Bot in the _Get Started_ section of dev.twitch has, doesn’t seem to handle tags? Or maybe I just can’t seem to find the function?

It seems to have built in functions for all of these Protocols: “error”,  
“join”,  
“kick”,  
“mode”,  
“part”,  
“ping”,  
“privmsg”,  
“privnotice”,  
“pubmsg”,  
“pubnotice”,  
“quit”,  
“invite”,  
“pong”,  
“action”,  
“topic”,  
“nick”

But can’t seem to handle the IRCv3 tags stuff, even though it can request them with c.cap(‘REQ’, ‘:twitch.tv/tags’)

Anyone gotten this to work? (preferably in Python 3+)

---

<div class="post-metadata">

**Author:** ![TheJackalMan](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/thejackalman/32/3979_2.png) [@TheJackalMan](https://staging-discuss.dev.twitch.com/u/TheJackalMan)\
**Post date:** [January 18, 2018, 2:41am UTC](https://staging-discuss.dev.twitch.com/t/python-twitch-bot-using-get-started-code-irc-library-cant-parse-tags/13797/2 "2018-01-18T02:41:33Z")

</div>

After tireless searching and digging in to documentation, I found this in the _irc_ library github around this issue: [https://github.com/jaraco/irc/issues/62](https://github.com/jaraco/irc/issues/62) You’ll need to go through the process of **def on\_all\_raw\_message()** and then parsing that data yourself.

After I get done what I need, maybe I’ll go through the process of helping them upgrade the irc library to be more IRCv3 friendly.

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://staging-discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [January 18, 2018, 9:11am UTC](https://staging-discuss.dev.twitch.com/t/python-twitch-bot-using-get-started-code-irc-library-cant-parse-tags/13797/3 "2018-01-18T09:11:00Z")

</div>

Theres also a library list on [https://ircv3.net/software/libraries.html](https://ircv3.net/software/libraries.html)

But yeah you might need to extend the library you are using to parse for the ircV3 specification additions

---

<div class="post-metadata">

**Author:** ![system](https://d2spem0quai2ol.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://staging-discuss.dev.twitch.com/u/system)\
**Post date:** [February 17, 2018, 9:11am UTC](https://staging-discuss.dev.twitch.com/t/python-twitch-bot-using-get-started-code-irc-library-cant-parse-tags/13797/4 "2018-02-17T09:11:14Z")

</div>

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