Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: Twitter bot service #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

humblepenguinn
Copy link
Contributor

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!

@aliirz
Copy link
Contributor

aliirz commented May 19, 2024

I need to test this. Will try to do today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants