Sign inSign up

fdsa/meh-bot

By fdsa

•Updated over 8 years ago

Meh Bot container

Image
0

1.4K

fdsa/meh-bot repository overview

⁠Meh Bot

A Python bot that clicks the daily Meh icon and optionally sends a text message to consumer about their product.

⁠Sales Pitch

If you subscribe to Meh, you'd think "Wouldn't it be great if I could check this website every day?", but then you always forget about it because you're so occupied with other stuff. Well here you go! An automation that and clicks the Meh icon for you. No more typing meh.com in the browser every day! Meh Bot, your personal clicking assistant. Download now!

⁠Requirement

You'll need a Twilio account if you want to send product info to your phone (which is just a title and a picture). You also need Docker to containerize the app.

If you hate Docker and don't want to use it, you also need Ubuntu and Python. Bot is only tested on Xenial and Artful.

⁠Getting Started

First create a file called .env. The program won't work without it.

  • Assign anything other than an empty string to DO_THIS_EVERY_DAY if you want it to run every day
  • Assign anything other than an empty string to RUN_IT_ONCE if you want it once before countdown starts
  • Assign anything other than an empty string to SEND_SMS if you want to activate texting
  • If you choose to activate texting, learn the basics of Twilio and you should be able to fill out ACCOUNT_SID and AUTH_TOKEN
  • TWILIO_TO_NUMBER and TWILIO_FROM_NUMBER are the receiver and sender respectively
  • MEH_USER could be your email address or username
  • MEH_PASS is the plain-text string you post on GitHub like everyone else
DO_THIS_EVERY_DAY=...
SEND_SMS=...
RUN_IT_ONCE=...
TWILIO_ACCOUNT_SID=...
TWILIO_AUTH_TOKEN=...
TWILIO_TO_NUMBER=...
TWILIO_FROM_NUMBER=...
MEH_USER=...
MEH_PASS=...

To use the script locally:

# Theoretically it should work on Python 2
apt-get update && apt-get install firefox # chromium and chrome support coming soon!
pip3 install -r req.txt
python3 bot.py

To build a Docker container on a server:

sh ./run-fg.sh # foreground, best run on tmux or equivalent
# OR
sh ./run-bg.sh # daemon task

That's it!

⁠Issues

  • Help I can't get Chrome and Chromium to work with Selenium.
  • I was told my code looks messy??? Help!

⁠Paradox

It's funny because after making Meh Bot I actually went and check Meh every day now. Nevertheless, Meh has earned my loyalty. Maybe they should hire me.

Tag summary

Content type

Image

Digest

Size

289.3 MB

Last updated

over 8 years ago

docker pull fdsa/meh-bot