/youtube-watchdog

Monitoring of latest uploading YouTube video and notifying in specific discord channel via webhooks.

Primary LanguagePython


For what

Monitoring of latest uploading YouTube video and notifying in specific discord channel via webhooks.

Installing

git clone https://github.com/Ryavell/youtube-watchdog
cd youtube-watchdog
pip install -r requirements.txt
python app.py

Parameters

By default app.py takes the configuration information from the default.json file.

You can copy this file and set the custom bot config or use following structure (use -f parameter to set custom config file).

{
	"bot_name": "Your Bot Name",
	"avatar_url": "https://your.avatar.url.com/amazing_avatar.png",
	"search_interval": 600,
	"query": "Music",
	"webhook_url": "https://discord.com/api/webhooks/channel/webhook_url",
	"api_key": ""
}

Also, you can set the config parameters from the command line:

  • -n, --name: Discord bot name displayed in channel
  • -i, --icon: Url to bot's avatar icon
  • -t, --search-interval: Time in seconds for searching query
  • -q, --query: Query string to tracking
  • -u, --webhook-url: Discord bot's webhook url
  • -f, --config-file: Path to config file
  • -a, --api-key: Optional developer API-key for using YouTube Data API v3

If you use YouTube Data API, then it costs 100 quota scores per request

External modules