KeshBotics / keshbotics3

KeshBotics 3 Discord async bot and Twitch API/webhook integration.
GNU General Public License v3.0
3 stars 1 forks source link

Migrate CRON functions to API #53

Open Travis-Owens opened 3 years ago

Travis-Owens commented 3 years ago

The functions executed by the 'CRON' task should be moved to the API. This will eliminate the current segmentation and code duplication. The 'CRON' task should instead create an HTTP request to the corresponding API routes (also explore alternative scheduling methods).

Task and Proposed API Routes: twitch_oauth() -> /twitch/oauth/update
twitch_subscribe() -> /twitch/subscriptions/update youtube_subscribe() -> /youtube/subscriptions/update

Travis-Owens commented 3 years ago

58 migrates YouTube display name updating and pubsubhubbub webhook subscriptions to the API. (route: PUT "/youtube/update".