!dice
. (This is known as a chatbot command.) When triggered, it randomly generates a number between 1-6. We run the fully-functioning chatbot on Glitch, and then show how you can alternatively run it locally on your computer. Here’s what the end result looks like:Variable | Description |
---|---|
BOT_USERNAME | Mac airport wireless app. Magnet app mac youtube. How to use ios app on macos. The account (username) that the chatbot uses to send chat messages. https://eventclever440.weebly.com/blog/download-mp3-from-mac-app-store. This can be your Twitch account. Alternately, many developers choose to create a second Twitch account for their bot, so it's clear from whom the messages originate. |
How to uninstall apps on macbook air. CHANNEL_NAME | The Twitch channel name where you want to run the bot. Usually this is your main Twitch account. |
OAUTH_TOKEN | The token to authenticate your chatbot with Twitch's servers. Generate this with https://twitchapps.com/tmi/ (a Twitch community-driven wrapper around the Twitch API), while logged in to your chatbot account. The token will be an alphanumeric string. |
!dice
. You’ll see a number from 1 to 6.npm install tmi.js
node bot.js
!dice
. You’ll see a number from 1 to 6.