This bot connects to:
- twitch irc for our twitch chat.
- owncast for your owncast chat. Might need to be using: owncast/owncast#574 until merged.
Sends messages from both into a Rocket.Chat Channel.
It also serves a page at: /embed which when you send !dance
in either twitch or owncast will cause a dancing banana to show up. This will allow you to setup this page as a browser source in OBS.
Sends message to owncast as broadcaster when the banana dances
To start, you’ll need three environment variables:
Variable | Description |
---|---|
BOT_USERNAME |
The account (username) that the chatbot uses to send chat messages. 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. |
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. |
WEBHOOK_SECRET |
This token is what you will need to use when hooking up owncast to point at the webhook |
ROCKETCHAT_HOOK |
This takes a Rocket.Chat integration endpoint |
OWNCAST_URL |
This is the URL to your owncast instance. |
OWNCAST_TOKEN |
This is the Access Token you need to have generated in your owncast admin. |
- Build a .env file with the values for the environment variables above
- Deploy this somewhere like glitch - Can be easily deployed remixing: https://glitch.com/edit/#!/cheerful-curse-hell
- In owncast create a webhook pointing to your apps address by going to: http://your-owncast-server/admin/webhooks
- In owncast create a access token so you can post messages to owncast chat. Do this by going to: http://your-owncast-server/admin/access-tokens
- Open https://your-app/embed and you'll be able to see dancing banana any time someone types
!dance
- Can view all of your messages in a Rocket.Chat channel across both platforms
- Add embed path to your OBS setup to get a dancing banana on stream any time one of your follows types the secret phrase.