Hambergo / 9kmmrbot

MIT License
104 stars 29 forks source link

Generalize Twitch channel connection/requirements #13

Closed tverghis closed 5 years ago

tverghis commented 5 years ago

Previously, the code assumed that the bot should join the production instance's Twitch channel on startup. It also assumed that the valid channel for the !join and !part commands would only be the 9kmmrbot channel.

The code should be deployable to create testing/staging instances of the bot, so the above assumptions no longer hold true.

This patch allows configuration of the bot's channel details (name and ID) through environment variables. If left unconfigured, it should fall back to existing behavior.