Skip to content

DavidIsrawi/Bumi-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bumi-bot - A Chat bot for Twitch Streams

Using it for my personal Twitch streams, but feel free to grab it for yours

Start

To host the bot, just run npm start

Structure

The connection and authorization is in src/app.js. You'll need to include a file in the root folder called config.json that includes the following:

  • USERNAME: the bot's name, not really relevant
  • OAUTH_TOKEN: To create an auth token, first register the bot here in Console->Applications, then make the GET call in this doc. Get the list of scopes (permissions) you'd like to include here. Then run the GET call from the browser by just adding it through the URL and grab the new auth token from the response URL also in the URL bar. The video I added in Relevant Sources explains it pretty well.
  • MY_CHANNEL: name of channel prefixed with a #

Besides that, all scripts are currently in scripts.js.

Special Scripts

SSBU Arena Script

Returns info regarding arena the streamer is using for others to join.

If you want to use this script, simply add the arena info to arena.json. You can edit this file as the bot is running and will just re-fetch the file every time to read the latest value.

SSBU Frame Data

Ask the bot for any SSBU character to receive a link with their frame data and much more.

Relevant Sources

  • To write the bot, I mainly followed this video by Techno Tim and then added additional scripts and refactored them all to its own class
  • Twitch docs
  • tmi.js. JS library for Twitch API

About

Chat bot for Twitch Streams

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published