demize / ghirahim_rs

Ghirahim_Bot is a Twitch IRC bot designed specifically to delete links from chat without timing users out, and with robust link detection.
MIT License
2 stars 2 forks source link

Modify our usage of Helix to be more appropriate #33

Closed demize closed 2 years ago

demize commented 2 years ago

We need to improve our usage of Helix in a few ways to a) ensure the bot doesn't run into any issues due to permissions (or lack thereof), b) remain in line with Twitch's API requirements, and c) not need to replace our auth token every 60 days.

Requirements

demize commented 2 years ago

Last push switched to authorization codes. Should also address the first point, but I want to make sure before I check the box...

It also validates the token on startup, just need to figure out how to set up a timer for that now.

demize commented 2 years ago

6d06351 should check hourly whether the token is still valid (and it should always be; twitch-irc checks if it's expired before we get it).

Need to properly test this all. That won't happen for another week or so, but that's fine.