dopeghoti / DiscordCurrentlyCastingBot

Python-based bot which uses the Discord and Twitch APIs to monitor a list of approved channels. When one goes live, a message will be posted. Any links to channels not on the air or approved will be removed.
5 stars 0 forks source link

CurrentlyCastingBot is a Discord bot written in Python for the purposes of maintaining a channel in a Discord server (or "guild" to use its parlance) which will post a "call to action" message when a monitored channel goes live on Twitch.tv. It will also watch for any monitored channels to go off the air and remove that message. The end result of this is a nice, clean channel containing only working links to live channels, and no links to channels which are no longer live. Any links to live thannels which are not affirmatively monitored will also be removed. This is a much cleaner look than a #self_promotion channel containing pages and pages of links to the same short list of channels, many or most of which may not even be on the air at the time a person is perusing the channel.

Once the bot has been configured and running, you should have two channels set up for the bot: One (which for instance we will call #now_live) for public consumption to which ideally only the bot will be able to post, but anyone on the Discord server can read; and one (which for instance we will call #bot_control) which is used to issue commands to the bot. Commands for the bot will start with a prefix defined in the configuration file (the example prefix given is !). There are four commands which the bot will respond to: