Post memes to any of your Slack channels with a slash command.
/meme success; we have; a meme bot;
/meme templates shows you the available built-in templates:
Use your own image by passing its URL as the template:
/meme https://nicolewhite.github.io/images/me.jpg; hello; my name is nicole;
Hone your meme skills privately by practicing in the slackbot channel.
The memes are posted under a bot in the same channel where
/meme was called, where the bot's picture and username are replaced with your own. Because a bot is posting the meme and not you, you will not be able to delete memes once they are sent.
Go to the Slack Web API page and scroll down to Authentication. If you haven't already, generate a token. This is your
Create a new Incoming Webhook. You can choose any channel; it doesn't matter.
The channel will be overridden on each request with the channel from which the request originated. After creating, you'll see
a Webhook URL field. This is your
Create a new Slash Command. Call it
/meme. After creating, you'll see a Token field. This is your
SLACK_SLASH_COMMAND_TOKEN. Keep this page open, as you'll need to configure the Slash Command further after deploying your Heroku App.
SLACK_SLASH_COMMAND_TOKEN values into the appropriate config variables.
Click Deploy for Free. Once finished, the Name field will now be populated if you didn't choose a name upfront.
Go back to your Slash Command configuration page, which you left open. Enter your app's URL, which is
https://your-app-name.herokuapp.com, into the URL field. Replace
your-app-name with the name of your app. Configure it to send a
GET request to this URL. For example, here is my configuration page:
Save the Slash Command integration.
To update your deployment with changes from this repository, visit your app's homepage on Heroku and navigate to the section on deploying with Heroku git at https://dashboard.heroku.com/apps/your-app-name/deploy/heroku-git, replacing
your-app-name with the name of your app. Follow the instructions there to get the Heroku toolbelt set up. Then:
$ heroku login $ heroku git:clone -a your-app-name $ cd your-app-name
your-app-name with the name of your app. Once you have this set up, you can update your app with changes from this repository with the following:
$ git remote add slack-meme https://github.com/nicolewhite/slack-meme $ git pull --rebase slack-meme master $ git push heroku master
This uses memegen. Thanks memegen!