Epicbot
March 7, 2021 ยท View on GitHub
Epicbot is a slack bot written in PureScript. It allows you to search for cards from the Epic Card Game and display the results in your slack channel.
To search for a card, simply type some or all of its name. Epicbot will perform a full text search to find the correct card.
/epic <search term>
You can also generate an example random dark draft draw using the draft
command.
/epic draft
Deploying
Install Dependencies
npm install .
Create a Self-Contained JavaScript Bundle
npm run bundle
Running this command results in the file dist/bundle/index.js being created.
It includes all dependencies required for running the slack bot and can be run
directly with node. You'll need to provide your Slack signing secret as an
environment variable.
SLACK_SIGNING_SECRET=<your slack signing secret> node dist/bundle/index.js
Once you have your bot running, you'll want to follow the guide for creating a
slash command to use the
bot. We recommend using /epic as your slash command.
Contributing
Install Tool Chain
npm install -g purescript spago
npm install .
Test
spago test
Run
spago run
Format
npm run format:check
npm run format
Lint
npm run lint
Run All CI Checks
npm run ci