: co:here / slack :
::: starter app :::
this project wraps https://github.com/slackapi/bolt-js. see official docs for details.
when reactions occur in channels that the app subscribes to, a threaded reply with co:here-powered content will be posted.
to add a new reaction:
- create a plugin under
./plugins/reactions
. - 🔧 update
./app.js
to require the new plugin and add it toreactionPlugins
see the following example plugins for reference:
emoji | description |
---|---|
:cohere: | health check to make sure the app is available |
:summarize: | summarize recent conversation in a channel |
when mentioned, the app will reply with co:here-powered responses.
example mentions include:
@co ping
@co summarize https://arxiv.org/abs/2202.12837
to add a new mention:
- create a plugin under
./plugins/reactions
. - 🔧 update
./app.js
to require the new plugin and add it tomentionPlugins
see the summarize
example plugin for reference.
yarn serve
this project leverages dotenv
to source secrets into the running environment. see example.env
for required configuration.
yarn test
yarn test:watch
see example tests and assertions.