Skip to content

grxffn/Example-Twitch-Bot

Repository files navigation

Example Twitch Bot

This is a example Twitch bot which uses tmi.js.

Installation

Once you clone this repository, use npm to install dependencies.

$ npm install

Before running this example, you will need to set config fields by creating config.js or renaming sample-config.js.

  1. CLIENT_ID - The Client ID of your registered application or account.
  2. ACCESS_TOKEN - The access token with the proper scopes.
  3. BOT_OWNER - Your username for the Permission Level System
  4. and don't forget to set <yourchannelname> to your twitch channel name in index.js
$ node index.js OR npm start

Features

Example offers:

  • 🛎️ Event Handler
  • 🔧 Command Handler
  • ⌛ Cooldown System
  • 🔒 Permission level system
  • 📖 Support for translations
  • 📝 Console logger

Disclaimer

I do not provide coding assistance. If you don't know Javascript, see below:

License

Example-Twitch-Bot is licensed under the MIT license. See the file LICENSE for more information.