Those are two "Extensions" written for the discord.py library where the Bot automatically sends a Message as soon as a user/channel entered in the config file goes live.
This is Important for the part in the Code where to access your "config.json" File.:
YourBotFolder <- Second "parent" folder - cogs <- First "parent" folder - twitch.py - youtube.py - main.py - config.json
To authorize the HTTP Requests that need to be done in order to Access the Twitch and YouTube API, you need to generate some Authorization Keys.
To get a Client ID
and a Client Secret
, you need to got to https://dev.twitch.tv/console/extensions and create a new Extension.
In order use the Youtube Data v3 API
you have to generate an API Key in the Google Cloud Protal at https://console.cloud.google.com/.
Do NOT
set the Task Loop checking from YouTube Notifications lower than 15 Minutes
because of the Rate Limits of YouTube.
More Information over at:
https://developers.google.com/youtube/v3/determine_quota_cost