Please note that this file is super rough. Lots of code copied from stackoverflow, lots of global variables, and so on. It was not made to be pretty, or clean.
Otherwise, have fun.
The bot works by retrieving files from a Google drive folder that we have created. It picks a random meme and posts it. The script is run using CRON:
0 */2 * * * python3 /home/user/memebot/memebot.py > /home/user/memebot/logs 2>&1
The Google drive is updated with new memes manually.