# How to create a Bot that reacts to a sub

**URL:** <https://discuss.dev.twitch.com/t/how-to-create-a-bot-that-reacts-to-a-sub/28858>\
**Category:** Chat and IRC\
**Created:** [October 31, 2020, 4:32pm UTC](https://discuss.dev.twitch.com/t/how-to-create-a-bot-that-reacts-to-a-sub/28858 "2020-10-31T16:32:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ioannis20x](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/ioannis20x/32/10601_2.png) [@Ioannis20x](https://discuss.dev.twitch.com/u/Ioannis20x)\
**Post date:** [October 31, 2020, 4:32pm UTC](https://discuss.dev.twitch.com/t/how-to-create-a-bot-that-reacts-to-a-sub/28858/1 "2020-10-31T16:32:25Z")

</div>

Hi, I want to create a Bot that reacts with a message to subs like this:

![InkedScreenshot_9_LI](https://d2opxh93rbxzdn.cloudfront.net/original/2X/8/8fae686ff5c4947c72ef62dbe500c0162e29e674.jpeg)

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [October 31, 2020, 4:34pm UTC](https://discuss.dev.twitch.com/t/how-to-create-a-bot-that-reacts-to-a-sub/28858/2 "2020-10-31T16:34:26Z")

</div>

Then you need to setup for the tags and commands capabilities and monitor for USERNOTICE events

> **[Twitch IRC Commands](https://dev.twitch.tv/docs/irc/commands/)**
>
> Twitch-specific IRC Commands

> **[Twitch IRC Tags](https://dev.twitch.tv/docs/irc/tags/)**
>
> Twitch IRC Tags Most IRC messages provide enough information that you can figure out what happened. For example, in the following PRIVMSG message, you know that user abc posted HeyGuys in the xyz channel. :abc!abc@abc.tmi.twitch.tv PRIVMSG #xyz...

Parse the message from Twitch and construct the message to send to chat accordingly

---

<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:** [November 30, 2020, 4:34pm UTC](https://discuss.dev.twitch.com/t/how-to-create-a-bot-that-reacts-to-a-sub/28858/3 "2020-11-30T16:34:31Z")

</div>

Closed on November 30, 2020, 4:34pm UTC

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