Trolls are everywhere. They can try to get your channel banned at any moment. To counter this, we can enable emote mode when the stream is offline.
This bot will automatically enable emote mode when the stream turns offline, and disable it when the stream turns back online.
- Clone the repository, using either git or the download button (or clicking this link)
- If you downloaded the zip, extract it, then open a terminal in the folder. If you cloned the repository, open a terminal in the folder.
- Use
npm install
to install the dependencies. - Rename
example.env
to.env
and fill in the values. - Use
npm start
to start the bot.
- Go to the Twitch Developer Portal and click on
Register Your Application
. - Fill in the name, put
http://localhost:3030
in the OAuth Redirect URL, and click onRegister
(for the category, you can putChat Bot
). - Congrats, you created your app!
- Open the
.env
file, with your favorite text editor. - Fill the values required. While most of it can be found in your app settings, the
OAUTH_TOKEN
value can be found here. - Save the file, and start the bot.
Once you launched the bot, you will have to open a new tab in your browser: http://localhost:3030/login. This will allow you to connect your Twitch account to the bot, to get credentials to check if your stream is online.
It is possible to change the messages sent by the bot in src/messages.ts. You can change the messages sent when the stream goes online, and when the stream goes offline.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
If you want to report a bug, request a feature, or contribute to the project, you can do so here.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.