Python-Slashgif: Post GIFs to Twitter by doing "@slashgif coffee break"


The missing GIF Twitter bot. Simply tag @slashgif in your tweet with a search term.

Where is this bot running?

Currently I'm running this bot on a 1GB DigitalOcean instance (yes, that's an affiliate link. Use that to get a free VPS for 2 months). The bot is not resource-intensive and uses a couple dozen MBs of RAM.



  • Python 3.4
  • pip3
  • sqlite3


Create a file called that looks like Fill in the necessary values.

For Twitter config:

  1. Register your app
  2. Get your app's key and secret.
  3. Create token and get the token and secret.
  4. Get a Giphy API key.

Then, to run the bot:

$ pip3 install -r requirements.txt
$ python3


Apache 2.0