eduardoltorres / the-debug-ducky

A CS50 friendly Twitter bot.

Home Page:https://twitter.com/thedebugducky

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The Debug Ducky

Update (March 31st, 2023): due to Twitter API's update on access tiers and pricing, The Debug Ducky will remain offline for the time being.

A twitter bot that automatically retweets, likes, and replies on matters related to Harvard's CS50 course. The bot is available at @thedebugducky on Twitter.

Features & Functionalities

  • Automatically retweets:
    • tweets with one or more of the following hashtags: #CS50 or #CS50x
    • @davidjmalan's latest tweet, if it hasn't been retweeted already
    • @cs50's latest tweet, if it hasn't been retweeted already
  • Automatically likes @davidjmalan's and @cs50's latest tweet, if they haven't been liked already.
  • Replies in thread to mentions with:
    • a random greeting, if the tweet contains "Hello";
    • or "This is CS50!", if the tweet contains "This is CS50".

In addition to the previous functionalities, while the application is running, the application writes to a .log file for information and errors. For example, it logs whenever any of the previously mentioned actions is in progress, has been tried, has succeeded or has failed. Even though the application is configured to catch and process all errors, uncaught errors will also be logged.

Technologies

The bot is built with Python. It uses the Tweepy package to connect to the Twitter API; more specifically, it uses the Cursor and the Stream Listener functionalities. For logging, it uses Python's logging module. It is hosted in PythonAnywhere.

License

Thise project is licensed under the MIT License - see the LICENSE file for details.

About

A CS50 friendly Twitter bot.

https://twitter.com/thedebugducky

License:MIT License


Languages

Language:Python 100.0%