gpt3-twitter-bot
gpt3-twitter-bot copied to clipboard
Can't go further that the auth route
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!