bhowiebkr / slackster-bot

A random 24h Python challenge.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

slackster-bot

This was a 24h trying to make a slack bot challenge I put on myself 6 months back. Most parts are done, but I don't think I ever got the slack bot side working. Have fun.

A Python challenge:

Connect a meme generator to slack in under 24h

This will use 2 web api’s: Slack's api and a meme generator called imgflip. It's API. I'll self contain everything in Docker to not pollute pip with this useless crud.

Install

Have Docker and Docker Compose installed. Google is your friend here. Should work in any os that supports Docker.

I've made a helper shell script for linux run but on Windows or Mac, just see how you'd run this from those os's. Linux eg:

docker-compose up --build

Put all your secrets like the url/password to the slack in a file under the app folder called .env

Env file should look something like this:

IMGFLIP_USERNAME=
IMGFLIP_PASSWORD=

TODO Steps:

  1. Generate a public meme url.
  2. Connect to Slack.
  3. Listen to a phrase in a specific channel on Slack.
  4. Glue everything together.

About

A random 24h Python challenge.

License:The Unlicense


Languages

Language:Python 73.5%Language:Dockerfile 26.5%