I have spent a lot of time on this already, but can’t find any definite answer. I’d appreciate a lot, if somebody could clear this up.
I’m writing a chatbot in PHP. I’m supposed to be using a password for IRC login that is an OAuth access token in a format like this:
Is there no way the bot code can get this for themselves? In the past I’ve had these access tokens expire and the bot disconnect. How is this supposed to work? I always get a new token in the browser and have to update the bot config?
I have working code that can get an access token with correct scopes via the
Client Credentials flow. But it is no good for connecting to IRC apparently (as I have learned in this post)
I’d like to automate the process if I can. I have registered my bot as an app and have
client_secret to use with OAuth. I can’t be the only one wanting to do this.
If anybody has some better info on this than the official docs, I’d very much appreciate it!
How do apps like Nightbot do this? Do they actually have somebody generate these codes by hand and paste them?