# Twitch IRC doesn't send NOTICEs or anything but PRIVMSG?

**URL:** <https://staging-discuss.dev.twitch.com/t/twitch-irc-doesnt-send-notices-or-anything-but-privmsg/21752>\
**Category:** Chat and IRC\
**Created:** [July 9, 2019, 12:39am UTC](https://staging-discuss.dev.twitch.com/t/twitch-irc-doesnt-send-notices-or-anything-but-privmsg/21752 "2019-07-09T00:39:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ATwitchAPIDeveloper](https://avatars.discourse-cdn.com/v4/letter/a/71e660/32.png) [@ATwitchAPIDeveloper](https://staging-discuss.dev.twitch.com/u/ATwitchAPIDeveloper)\
**Post date:** [July 9, 2019, 12:39am UTC](https://staging-discuss.dev.twitch.com/t/twitch-irc-doesnt-send-notices-or-anything-but-privmsg/21752/1 "2019-07-09T00:39:08Z")

</div>

1. I make my bot join my room.
2. I type “test” as my account in my room.
3. The bot sees this as a “PRIVMSG”, as expected. 100% working and logical so far.
4. Now I enable slow mode in the chat room. It says “blabla enabled 120-second slow mode for this room.” in my browser, but the bot doesn’t get any kind of signal sent to it. No matter how long I wait.
5. I again type “test123” and the bot immediately gets the PRIVMSG line logged.

???

I’ve sat with this problem all day, wasting hour after hour. At this point, I have _no idea_ anymore what could possibly be wrong. It doesn’t make any sense. My bot displays anything the server sends back. It doesn’t filter out any kind of message. I’ve checked many times. I coded the thing, and everything works perfectly, including PING/PONG etc.

---

<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:** [July 9, 2019, 10:43am UTC](https://staging-discuss.dev.twitch.com/t/twitch-irc-doesnt-send-notices-or-anything-but-privmsg/21752/2 "2019-07-09T10:43:08Z")

</div>

Did you enable TAGS and COMMANDS capabilities?

> **[Chat & Chatbots](https://dev.twitch.tv/docs/irc/)**
>
> Twitch Chat & Chatbots

Generally Capability requests should be send, during AUTH before JOINing a room.

Example of Frames from the Twitch Front end connecting to chat

 ![image](https://d2spem0quai2ol.cloudfront.net/original/2X/3/3ca2546dff6827f08385290937b3f2dfb3e9685d.png)

---

<div class="post-metadata">

**Author:** ![ATwitchAPIDeveloper](https://avatars.discourse-cdn.com/v4/letter/a/71e660/32.png) [@ATwitchAPIDeveloper](https://staging-discuss.dev.twitch.com/u/ATwitchAPIDeveloper)\
**Post date:** [July 9, 2019, 7:43pm UTC](https://staging-discuss.dev.twitch.com/t/twitch-irc-doesnt-send-notices-or-anything-but-privmsg/21752/3 "2019-07-09T19:43:21Z")

</div>

Ah… Turns out it only works if you send the CAP REQ commands _after_ the USER/NICK. Maybe I read it wrong, but the IRCv3 specification seemed to specifically say that you must send the CAP REQ _before_ that, which is why I did it yesterday when it wouldn’t work. It works now.

This is the page I read: [Redirecting…](https://ircv3.net/specs/core/capability-negotiation) The part that confused me, and still confuses me, is this:

> Upon connecting to the IRC server, clients SHOULD send one of the following messages:
> 
> - `CAP LS [version]` to discover the available capabilities on the server.
> - `CAP REQ` to blindly request a particular set of capabilities.
> 
> Following this, the client MUST send the standard `NICK` and `USER` IRC commands.

---

<div class="post-metadata">

**Author:** ![ATwitchAPIDeveloper](https://avatars.discourse-cdn.com/v4/letter/a/71e660/32.png) [@ATwitchAPIDeveloper](https://staging-discuss.dev.twitch.com/u/ATwitchAPIDeveloper)\
**Post date:** [July 9, 2019, 8:06pm UTC](https://staging-discuss.dev.twitch.com/t/twitch-irc-doesnt-send-notices-or-anything-but-privmsg/21752/4 "2019-07-09T20:06:25Z")

</div>

Sigh. I cheered too early. While what I said above did make the “slow mode” stuff work, it _still_ doesn’t say anything whatsoever when the bot is banned or when the bot tries to speak when it is banned. Nothing. This in spite of the fact that it now sees the NOTICEs like:

> blabla NOTICE #blabla :This room is now in slow mode. You may send messages every 120 seconds.

What could possibly be wrong at this point? Obviously, it receives NOTICEs now, but still none for bans or when trying to speak when banned. This is really making me frustrated…

---

<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:** [August 8, 2019, 8:06pm UTC](https://staging-discuss.dev.twitch.com/t/twitch-irc-doesnt-send-notices-or-anything-but-privmsg/21752/5 "2019-08-08T20:06:25Z")

</div>

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