User-generated aggregator for tools that Hack Club members have made.
touch .env
at 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_SECRET
andSLACK_BOT_TOKEN
are the usual strings.SLACK_LOG_CHANNEL
is the channel ID where log messages will be sent to. Might want to be private.SLACK_TOOLS_CHANNEL
is the channel where tools are aggregated. Makes sense to be public.REACTION_ADD_TOOL
is the emoji identifier for the reaction that should trigger the bot. For example, if set tojoy
, then when a message is reacted with thejoy
emoji, the bot will attempt to add it to theSLACK_TOOLS_CHANNEL
.REACTION_DEL_TOOL
is the emoji identifier for the reaction that should delete a tool inSLACK_TOOLS_CHANNEL
. Only theREACTION_WHITELIST_OWNER
user's reaction will be respected.REACTION_WHITELIST_OWNER
is the user ID of the user that should have permission to delete posts inSLACK_TOOLS_CHANNEL
.
- Optionally, define
SLACK_REQUEST_ENDPOINT
to change the Slack event subscription endpoint. - Run these:
$ yarn install
$ yarn build
$ yarn deploy