This is a example Twitch bot which uses tmi.js.
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
.
- CLIENT_ID - The Client ID of your registered application or account.
- ACCESS_TOKEN - The access token with the proper scopes.
- BOT_OWNER - Your username for the Permission Level System
- and don't forget to set
<yourchannelname>
to your twitch channel name in index.js
$ node index.js OR npm start
Example offers:
- ๐๏ธ Event Handler
- ๐ง Command Handler
- โ Cooldown System
- ๐ Permission level system
- ๐ Support for translations
- ๐ Console logger
I do not provide coding assistance. If you don't know Javascript, see below:
- Learn Javascript with Codecademy.
- Get familiar with tmi.js.
- Generate tokens for use with the Twitch API using Twitch Token Generator.
Example-Twitch-Bot is licensed under the MIT license. See the file LICENSE
for more information.