Skip to content

gbowne1/TwitchBot

Repository files navigation

TwitchBot

This is a Twitch ChatBot that has a React and MUI/MaterialUI frontend, and NodeJS backend, with a MongoDB database. Once a Twitch ChatBot is established, this application gives numerous features and commands available to the streamer and their viewers. Through this TwitchBot, interaction between a streamer and their chat, along with people within chat is enhanced, being able to provide information on the stream along with numerous activities

This bot uses these technologies in the stack

MongoDB Express React Node.js Material-UI tmi.js

Table of Contents

Features

  • React and Material UI Frontend
  • Points and Command Leaderboard
  • Various Twitch commands (some of which remain in development)
  • 8ball, accountage, ban, commands, discord, donate, famousCommand, follwage, lurk, poll, project, quote, request, schedule, social, song, timeout, uptime, and weather

Installation and Setup

  1. Clone or Fork the repository. Clone if you intend to just fix bugs, etc., Fork if you intend to use this to create your own.
  2. Install client dependencies using while inside /src/client run npm install
  3. install server dependencies using while inside /src/server run npm install
  4. An example .env file .env-example is provided. Rename to .env and fill in your details.

Usage

This TwitchBot uses TMI.js library in order to connect to and interact with TwitchBot. To start the Twitch bot, in /src/client run:

npm start

The server/backend/database is currently set up in app.js on the server side in /src/server

To start the Twitch bot server/backend, in /src/server run:

npm start

The bot will then connect to the Twitch channel chat and listen for commands and respond

Available Commands

The bot will support the following commands: !accountage: Shows how old the user's Twitch account is. !ban : Bans a user from the channel (moderator/broadcaster only). !commands: Displays a list of available commands. !discord: Provides a link to the designated Discord server. !followage: Shows how long the user has been following the channel. !project <project_name>: Sets or updates the current project being worked on. !timeout : Times out a user for a specified duration (moderator/broadcaster permission only). !uptime: Displays the channel's uptime.

Contributing

If you wish to contribute to this project, head over to Contributing.md for more information.

Licensing

For more information on the licensing of this project, refer to LICENSING

Warning

[Under Construction] Please do not use this in production. There is no guarantee this will connect to Twitch Chat. It will need significant work in order to be used with Twitch and or connect to it's services.