Skip to content

simplydreamy0/streamer-helper

Repository files navigation

Welcome to Stream Helper Chatbot 👋

Version Documentation License: BSD 3--Clause "New" or "Revised" License Twitter: DreamyProtect

This project is a usefull chatbot that can be coupled with your normal chatbot helper like Nightbot and Streamelements that shoutouts streamers you configured it to shoutout.

Usage

  1. Create a JSON configuration file:
{
  "loglevel": "info",
  "twitch_chatbot": {
    "username": "dreamyprotects",
    "shoutouts": [
      "dreamyprotects",
    ],
    "shoutouts_ttl": "10m",
    "connected_channels": [
        "dreamyprotects"
    ]
  },
  "database": {
    "path": "db.json"
  }
}

And change the variables according to your needs:

  • loglevel: The level of logs you want the bot to output follow winston's documentation
  • twitch_chatbot.username: the name of the user representing the bot in your channel (must match the user you generated the token with).
  • twitch_chatbot.shoutouts: the list of users you want to automatically shoutout
  • twitch_chatbot.shoutouts_ttl: the ttl for the shoutout (after x period of time the user will get re-shouted out)
  • twitch_chatbot.connected_channels: this is a list of twitch chats you want the bot to be connected to.
  • database.path: this project uses a local database (which is essentially a json file), this is the path where that file is stored on the disk. By default the path will be in /app/db.json in the container.
  1. Start the container
docker run \
  -v $(pwd)/config.json:/app/config.json # by default the configuration path is /app/config.json but you can change it using the CONFIG_PATH environment variable
  -e TWITCH_ACCESS_TOKEN=<your bot access token> \
  ghcr.io/dreamyprotect/streamer-helper:latest

The bot should connect to the configured chats and shoutout people automatically.

Note: The bot is currently built for linux/amd64, linux/arm64 and linux/arm/v7 platforms.

Getting an access token

You must follow Twitch's documentation to register an app and get an access-token for the bot.

Contributing

TODO: