codeforpakistan / Numainda

Numainda a democracy focused knowledge bot
https://numainda.streamlit.app
MIT License
5 stars 1 forks source link

Implemented basic twitter bot functionality (issue #2) #4

Closed humblepenguinn closed 5 months ago

humblepenguinn commented 5 months ago

This commit builds the foundation for the twitter bot that Numainda was missing.

The Twitter class was renamed to TwitterBot and has the following methods:

The implementation does not directly communicate with the API but rather uses a package called tweepy. The post_tweet and get_mentions methods have not been tested since it requires a different level of access. My API keys only support the Free Level Access.

Now the next step is to get the bot up and running. This would require the bot to concurrently run with the streamlit web server. Or maybe another approach would be to write a separate service for the bot that can run independently.

aliirz commented 5 months ago

looks good