User-generated aggregator for tools that Hack Club members have made.
touch .envat the project root and define the following values:
SLACK_SIGNING_SECRET=
SLACK_BOT_TOKEN=
SLACK_LOG_CHANNEL=
SLACK_TOOLS_CHANNEL=
REACTION_ADD_TOOL=
REACTION_DEL_TOOL=
REACTION_WHITELIST_OWNER=
SLACK_SIGNING_SECRETandSLACK_BOT_TOKENare the usual strings.SLACK_LOG_CHANNELis the channel ID where log messages will be sent to. Might want to be private.SLACK_TOOLS_CHANNELis the channel where tools are aggregated. Makes sense to be public.REACTION_ADD_TOOLis the emoji identifier for the reaction that should trigger the bot. For example, if set tojoy, then when a message is reacted with thejoyemoji, the bot will attempt to add it to theSLACK_TOOLS_CHANNEL.REACTION_DEL_TOOLis the emoji identifier for the reaction that should delete a tool inSLACK_TOOLS_CHANNEL. Only theREACTION_WHITELIST_OWNERuser's reaction will be respected.REACTION_WHITELIST_OWNERis the user ID of the user that should have permission to delete posts inSLACK_TOOLS_CHANNEL.
- Optionally, define
SLACK_REQUEST_ENDPOINTto change the Slack event subscription endpoint. - Run these:
$ yarn install
$ yarn build
$ yarn deploy