Skip to content

Latest commit

 

History

History
71 lines (47 loc) · 3.91 KB

README.md

File metadata and controls

71 lines (47 loc) · 3.91 KB

Twitter Guybrush Threepwood bot.

A Twitter bot that tweets a quote every hour of the mighty pirate, Guybrush Threepwood. Also reply for mentions with a random quote.

The bot also post Monkey Island screenshots in order every 3 hours.

Guybrush quotes

Monkey Island walkthrough

Setup

  1. Clone the project.
  2. Create an environment doing pip install virtualenv and then virtualenv {ENVIRONMENT_NAME}.
  3. Activate the virtual if needed source /{ENVIRONMENT_NAME}/bin/activate (Note: The method used to activate the virtual environment may be different, depending on your operating system and shell. You can learn more about this in the venv documentation.)
  4. Generate the twitter account keys. Visit https://developer.twitter.com.

Run the quotes Bot

  1. Run the scrirpt for a single tweet TWITTER_BOT_CONSUMER_KEY='{KEY}' TWITTER_BOT_CONSUMER_SECRET='{KEY}' TWITTER_BOT_ACCESS_TOKEN='{KEY}' TWITTER_BOT_ACCESS_TOKEN_SECRET='{KEY}' python guybrush_threepwood_quotes_bot.py

Run the reply bot

  1. Run the script for replying mentions BOT_USER_ID={BOT_USER_ID} TWITTER_BOT_CONSUMER_KEY='{KEY}' TWITTER_BOT_CONSUMER_SECRET='{KEY}' TWITTER_BOT_ACCESS_TOKEN='{KEY}' TWITTER_BOT_ACCESS_TOKEN_SECRET='{KEY}' BARER_TOKEN='{KEY}' nohup python guybrush_threepwood_reply_bot.py

Run the Monkey Island screenshots bot

  1. Run the script for posting screenshots: TWITTER_BOT_CONSUMER_KEY={TWITTER_BOT_CONSUMER_KEY TWITTER_BOT_CONSUMER_SECRET={TWITTER_BOT_CONSUMER_SECRET TWITTER_BOT_ACCESS_TOKEN={TWITTER_BOT_ACCESS_TOKEN} TWITTER_BOT_ACCESS_TOKEN_SECRET={TWITTER_BOT_ACCESS_TOKEN_SECRET} nohup python monkey_island_screenshots_bot.py &

Production bot:

@guybrush_quotes

image

Resources

Twitter:

Python: