r/RequestABot•
risos

Having a problem with my bot

I wrote my own bot earlier this year that has been posting daily comments from its own account. As of 2 days ago it has started posting the comments from my account (the one that wrote this post). I have a feeling it might have to do with the authentication as I had to renew it about a week ago.

Any help would be much appreciated.

Edit: Problem solved thanks to u/GoldenSights

Posted Oct 12, 2015, 8:06 AM UTC · edited

35
GoldenSights•

If you generated the OAuth refresh token using this account, then using it as the refresh_access_information token is going to log you in as risos. You have to complete the auth process using the bot's account. I don't think the App needs to actually belong to the bot, but you have to do the "Oauth app requests access to your reddit account" confirmation as the bot.

2
risosOP•

Ah, ok. Thanks. Is there a way I can force this or do I have to wait until it prompts me again?

2
GoldenSights•

Well, you'll have to stop using whatever refresh token you generated, and go create a new one using the bot's account. The current one is going to log you into u/risos every time you use it. Does that help, or are you asking about something different? I guess I'm not sure which prompt you mean.

2
risosOP•

That worked. Thank you so much!

2
GoldenSights•

Awesome! You're welcome.

1