It's a webhook application that notifies you when a Slack custom emoji is registered. This application runs as a webapp in the Google apps scripts. If you register as an endpoint for Slack API Event Subscriptions, you will be notified of the emoji registered in the Slack channel.
- clasp
npm
make
To use it, you need to set up Google apps scripts and Slack API.
- Enable Google Apps Script API
https://script.google.com/home/usersettings - make push
- make deploy
- Grant the necessary privileges
make open
Publish > Deploy as web app.. > Update
Grant access
- Create New App
https://api.slack.com/apps - Setting Event Subscriptions
Turn on.
Setting Request URL.
ex) https://script.google.com/macros/s/miserarenaiyo/exec
Add Workspace Event.
Selectemoji_changed
. - Activate Incoming Webhooks
Turn on.
Add New Webhook to Workspace.
Select the channel to notify.
In order to run the application and change its behavior, you need to set the following Google Apps scripts property.
Property name | Required | Setting Value | Description |
---|---|---|---|
VERIFICATION_TOKEN | ○ | Basic Information > App Credentials > Verification Token | A token that easily authenticates the source of a hooked request |
INCOMING_WEBHOOKS_URL | ○ | Incoming Webhooks > Webhook URL | Incoming Webhooks URL Activated During Slack API Registration |
NOTIFICATION_MESSAGE | optional | Free text message | default A new emoji is added |
- Open Project
$ make open
- Add Scirpt properties
File > Project properties > Scirpt properties > Add row
Setting Property & Value