gpt3-twitter-bot icon indicating copy to clipboard operation
gpt3-twitter-bot copied to clipboard

Can't go further that the auth route

Open NicolasMRTNS opened this issue 3 years ago • 0 comments

Hey everyone,

I have been trying to get the bot working, but I am not able to. I have the same code but when I try to test it, I make a call to the /auth route but then, the redirection does not work. I can't go further. When I try to click on the /auth route myself, I am always redirected to the URL asking me if I want to authorize the third party app. When I click the button to confirm, then the callback is executed and the tweet is sent.

But the thing is, I'd like to get it working on its own. Maybe I don't know how to use the PubSub from Firebase ?

I do this:

exports.scheduleJobs = functions.pubsub.schedule('every 3 hours').onRun(() => {
  fetch('http://127.0.0.1:5000/twitter-bot/us-central1/auth');
});

(The URL is localhost as an example, I do fetch the URL provided by firebase when I execute firebase deploy.)

Any help is appreciated, Thanks!

NicolasMRTNS avatar Feb 05 '22 22:02 NicolasMRTNS