A Google Apps Script project to notify YouTube comment to Discord.
clasp create --rootDir ./src --type standalone --title "notify-youtube-comment-to-discord"
clasp push --force
- Open
run.gs
and set properties via runningsetProperty()
. - Run
main()
or set a trigger to runmain()
every 5 minutes.
- YOUTUBE_PLAYLIST_ID
- DISCORD_WEBHOOK_URL
- LAST_NOTIFIED_COMMENT_TIMESTAMP
- ISO8601 format
This script uses YouTube API, so it consumes an API quota. Let's check the execution log that shows an estimate of quota consumption.