Skip to content

justekoro/streamer-emoteonly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Emote only bot

TypeScript Twitch License GitHub


What is this?

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.

Installation

Requirements

Setup

  1. Clone the repository, using either git or the download button (or clicking this link)
  2. 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.
  3. Use npm install to install the dependencies.
  4. Rename example.env to .env and fill in the values.
  5. Use npm start to start the bot.

Configuration

Create a Twitch app

  1. Go to the Twitch Developer Portal and click on Register Your Application.
  2. Fill in the name, put http://localhost:3030 in the OAuth Redirect URL, and click on Register (for the category, you can put Chat Bot).
  3. Congrats, you created your app!

Fill in the values

  1. Open the .env file, with your favorite text editor.
  2. Fill the values required. While most of it can be found in your app settings, the OAUTH_TOKEN value can be found here.
  3. Save the file, and start the bot.

Prepare for the run

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.

Change the messages

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.

License

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Bug report, feature request, or contribution

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.

Credits

Releases

No releases published

Packages

No packages published