Chat with big :emoji: like stamp
JavaScript HTML
Switch branches/tags
Nothing to show
Clone or download
16g Merge pull request #1 from 16g/update
Upgrade packages
Latest commit 13704e2 Jun 14, 2018
Permalink
Failed to load latest commit information.
images Update README Apr 5, 2017
models Slack authentication Mar 27, 2017
public/images Slack authentication Mar 27, 2017
templates Rename repo Apr 5, 2017
.env.example Update README Apr 5, 2017
.gitignore Add docker Mar 23, 2017
Dockerfile Upgrade Node.js on docker Jun 14, 2018
Procfile Init Mar 18, 2017
README.md Update README Apr 5, 2017
app.js Update hapi server Jun 14, 2018
app.json Update README Apr 5, 2017
docker-compose.yml Slack authentication Mar 27, 2017
package.json Update dependencies Jun 14, 2018
yarn.lock Update dependencies Jun 14, 2018

README.md

slamp

What is it? What is it?

Chat with big :emoji: in slack.

image

Install yourself

Create heroku application

Deploy

Now, environment variables is temporary.

Create slack application

Go to Slack API: Applications.

  1. Create New app.

  2. Setup application.

  • App Name: Slamp
  • Development Slack Team: Select team installed application.
  1. Create New app.

Create Slash commands

In the slack application.

  1. Select Slack Commands from Features menu.
  2. Create New Command.
  3. Setup Slack commands.
  • Command: Slamp (or name yourself)
  • Request URL: Your application URL.
  • Short Description: Stamp emoji
  • Usage Hint: :emoji:
  1. Save.

Setup OAuth

Select OAuth & Permissions from Features menu.

Redirect URLs

  1. Add a new Redirect URL
  • ${YOUR_APPLICATION_URL}/auth
  1. Add and Save URLs.

Select Permission Scopes

Select Permission scopes below.

  • emoji:read
  • chat:write:user

Install app

Select OAuth & Permissions from Features menu.

  1. Install App to Team
  2. Authorize

Setup environment variables

In the heroku application, input variables from slack application App Credentials.

Configure URL

heroku config:set URL=$(heroku info -s | grep web_url | cut -d= -f2)

Usage

type below in slack.

/stamp :custom_emoji:

image

So fun!

image