Skip to content

A simple Twitch chat bot that can be run from the command-line.

License

Notifications You must be signed in to change notification settings

PythooonUser/twitch-chat-bot-js

Repository files navigation

twitch-chat-bot-js

A simple Twitch chat bot that can be run from the command-line.

Chat Bot

Features

  • Easy configuration using JSON files
  • Users in chat can create custom commands
    • Using !add or !remove
  • Viewers writing their first message in current stream session are optionally greeted with e.g.
    • Welcome to the stream, username HeyGuys
  • Verbose option to toggle whether chat bot can send messages to chat
  • Chat log of stream in command-line
  • Different languages

Installation and Setup

  1. Create configuration file app.cfg.json based on app.cfg.json.dist contents and adjust based on your needs
  2. Create command database file commands.json based on commands.json.dist contents for your default commands. In addition all user created commands will be saved here
  3. Install dependencies using $ npm install
  4. Run chat bot using $ node app.js
  5. Stop chat bot by using keyboard interrupt Ctrl+C

Note: In case you are not interested in running node everytime, you can simply build a Windows executable using $ npm run build.

The config file contains the following properties:

  • username: Twitch bot username
  • password: Twitch bot password
  • channel: Channel name
  • verbose: Whether to send messages to chat
  • commands: Path to command database file
  • greetNewViewers: Whether to send a greeting to new viewers
  • language: Currently either en or de (changes default command localization)

Build-in Commands

  • !add command message
  • !remove command
  • !commands

About

A simple Twitch chat bot that can be run from the command-line.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published