https://github.com/drewolson/epicbot-hs
A Slack Bot for Epic Card Game -- in Haskell!
https://github.com/drewolson/epicbot-hs
Last synced: 12 months ago
JSON representation
A Slack Bot for Epic Card Game -- in Haskell!
- Host: GitHub
- URL: https://github.com/drewolson/epicbot-hs
- Owner: drewolson
- License: mit
- Created: 2021-02-09T14:44:21.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-10-03T14:29:47.000Z (over 4 years ago)
- Last Synced: 2025-02-27T06:47:53.035Z (over 1 year ago)
- Language: Haskell
- Homepage:
- Size: 70.3 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Epicbot
Epicbot is a slack bot written in Haskell. It allows you to search for cards
from the [Epic Card Game](https://www.epiccardgame.com/) 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.
```text
/epic
```
You can also generate an example random dark draft draw using the `draft`
command.
```text
/epic draft
```
## Deploying
```text
stack --docker build
```
This builds the `epicbot-exe` executable on the docker container referenced in
`stack.yaml`. If you're deploying to an environment different than `debian`,
feel free to change this image.
To find the location of the executable you build, run the following:
```text
stack --docker exec -- which epicbot-exe
```
Now, run the executable.
```bash
EPICBOT_ONLINE=1 EPICBOT_SLACK_SIGNING_SECRET= /path/to/epicbot-exe
```
Once you have your bot running, you'll want to follow the guide for creating a
[slash command](https://api.slack.com/interactivity/slash-commands) to use the
bot. We recommend using `/epic` as your slash command.