# Can't get USERNOTICE or twitchnotify messages

**URL:** <https://discuss.dev.twitch.com/t/cant-get-usernotice-or-twitchnotify-messages/15184>\
**Category:** API\
**Created:** [April 7, 2018, 11:55pm UTC](https://discuss.dev.twitch.com/t/cant-get-usernotice-or-twitchnotify-messages/15184 "2018-04-07T23:55:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ocelot2123](https://avatars.discourse-cdn.com/v4/letter/o/f1d935/32.png) [@ocelot2123](https://discuss.dev.twitch.com/u/ocelot2123)\
**Post date:** [April 7, 2018, 11:55pm UTC](https://discuss.dev.twitch.com/t/cant-get-usernotice-or-twitchnotify-messages/15184/1 "2018-04-07T23:55:50Z")

</div>

I think I have a fundamentally lack of understanding how irc works but I’m still going to try asking here because I can’t really find an answer. I’ve been following the chat bot sample provided here [https://github.com/twitchdev/chat-samples/blob/master/python/chatbot.py](https://github.com/twitchdev/chat-samples/blob/master/python/chatbot.py) and I’ve been trying to do something when someone subs. I have requested tags and commands as shown in the example to get USERNOTICE capabilities however I can’t seem to figure out how I can actually get those messages. They don’t show up in pubmsg or privmsg for me and I am really confused right now, any ideas what I’m doing incorrectly? or is there something very obvious that I am missing?

---

<div class="post-metadata">

**Author:** ![psilocide](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@psilocide](https://discuss.dev.twitch.com/u/psilocide)\
**Post date:** [April 8, 2018, 1:22am UTC](https://discuss.dev.twitch.com/t/cant-get-usernotice-or-twitchnotify-messages/15184/2 "2018-04-08T01:22:51Z")

</div>

What error messages are you getting?

---

<div class="post-metadata">

**Author:** ![swiftyspiffy](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/swiftyspiffy/32/1279_2.png) [@swiftyspiffy](https://discuss.dev.twitch.com/u/swiftyspiffy)\
**Post date:** [April 8, 2018, 2:23am UTC](https://discuss.dev.twitch.com/t/cant-get-usernotice-or-twitchnotify-messages/15184/3 "2018-04-08T02:23:12Z")

</div>

Are you able to post the relevant code here?

---

<div class="post-metadata">

**Author:** ![Freddy](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/freddy/32/111_2.png) [@Freddy](https://discuss.dev.twitch.com/u/Freddy)\
**Post date:** [April 8, 2018, 4:30am UTC](https://discuss.dev.twitch.com/t/cant-get-usernotice-or-twitchnotify-messages/15184/4 "2018-04-08T04:30:36Z")

</div>

It looks like the IRC library your chatbot is using isn’t made for Twitch. It doesn’t listen for Twitch specific messages like USERNOTICE or the like.  
So, either you switch to another IRC library that is made for Twitch or you modify your current one yourself.

Also, twitchnotify has been removed a long time ago

---

<div class="post-metadata">

**Author:** ![ocelot2123](https://avatars.discourse-cdn.com/v4/letter/o/f1d935/32.png) [@ocelot2123](https://discuss.dev.twitch.com/u/ocelot2123)\
**Post date:** [April 8, 2018, 9:14am UTC](https://discuss.dev.twitch.com/t/cant-get-usernotice-or-twitchnotify-messages/15184/5 "2018-04-08T09:14:09Z")

</div>

hmm ok that makes sense. right now I can only get all the chat messages from the example code. I guess I’ll connect manually using socket or something

---

<div class="post-metadata">

**Author:** ![system](https://d2opxh93rbxzdn.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://discuss.dev.twitch.com/u/system)\
**Post date:** [May 8, 2018, 9:14am UTC](https://discuss.dev.twitch.com/t/cant-get-usernotice-or-twitchnotify-messages/15184/6 "2018-05-08T09:14:12Z")

</div>

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