This commit introduces a preliminary draft for implementing the Twitter bot. Changes include:
Adding a new method respond_to_mentions to the TwitterBot class, utilizing the tweepy API to fetch current mentions and respond to them using the ChatGPT API.
Creation of twitter_bot_service.py containing the source code for running the bot.
Updating the start method of the TwitterBot to execute a while loop every 5 minutes, invoking the respond_to_mentions method.
As mentioned in my previous pull request (#4) I have no way to actually test these changes since the Access Level for my current twitter API keys is not sufficient enough. Moreover I am also unaware as to how Numainda currently handles it interactions with the ChatGPT API and what instruction prompt it provides to it, so I have left that empty for now.
Any suggestions/improvements would be appreciated!
This commit introduces a preliminary draft for implementing the Twitter bot. Changes include:
Adding a new method
respond_to_mentions
to theTwitterBot
class, utilizing thetweepy
API to fetch current mentions and respond to them using the ChatGPT API.Creation of
twitter_bot_service.py
containing the source code for running the bot.Updating the
start
method of theTwitterBot
to execute a while loop every 5 minutes, invoking therespond_to_mentions method
.As mentioned in my previous pull request (#4) I have no way to actually test these changes since the Access Level for my current twitter API keys is not sufficient enough. Moreover I am also unaware as to how Numainda currently handles it interactions with the ChatGPT API and what instruction prompt it provides to it, so I have left that empty for now.
Any suggestions/improvements would be appreciated!