Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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!