-
Notifications
You must be signed in to change notification settings - Fork 1
Setup
This page gives a detailed walk-through of how to set up the bot.
For starters, we need to configure the Twitch-specific details. This will be two things: the login details which the chatbot will use, and the name of the Twitch channel(s) the bot should listen for Nightscout commands on.
The bot was designed to allow running it on a separate Twitch user, which is why we need to specify the channel and login names separately. Although it is possible, running the bot on a separate user isn't in the scope of this tutorial. We're just going to host it on your main Twitch account for the sake of simplicity.
-
Open the generated
config.yaml
file in a text editor of some kind: VS Code, Notepad++, or even standard Notepad -
Replace
my_twitch_username
undertwitch:
andchannels:
with your Twitch username.GIF
-
Generate an OAuth password here, then copy the password (be sure to include the
oauth
part at the beginning of it) into the configuration file underoauth
.GIF
At this point, it should look something like this:
Image
Now that we've entered our Twitch details, we can begin configuring the Nightscout details.
-
Replace
https://your-nightscout.herokuapp.com/
with your Nightscout URL in thenightscout:
section underchannels
-
If your Nightscout requires a token or API secret to read the data: Uncomment the
token:
line, and replaceyourtoken-1111111111111111
with the token.GIF
Now, your config should look similar to this:
Image
Save the file and run the program again. If a console appears and says:
Image
then the bot should be working! Go to your Twitch channel and type !ns
in chat: