Chat with big :emoji: in slack.
Now, environment variables is temporary.
Go to Slack API: Applications.
-
Create New app
. -
Setup application.
App Name
: SlampDevelopment Slack Team
: Select team installed application.
Create New app
.
In the slack application.
- Select
Slack Commands
from Features menu. Create New Command
.- Setup Slack commands.
Command
: Slamp (or name yourself)Request URL
: Your application URL.Short Description
: Stamp emojiUsage Hint
: :emoji:
Save
.
Select OAuth & Permissions
from Features menu.
Add a new Redirect URL
${YOUR_APPLICATION_URL}/auth
Add
andSave URLs
.
Select Permission scopes below.
emoji:read
chat:write:user
Select OAuth & Permissions
from Features menu.
Install App to Team
Authorize
In the heroku application, input variables from slack application App Credentials
.
heroku config:set URL=$(heroku info -s | grep web_url | cut -d= -f2)
type below in slack.
/stamp :custom_emoji: