|
2 months ago | |
---|---|---|
.gitignore | 2 months ago | |
Dockerfile | 2 months ago | |
LICENSE | 2 months ago | |
README.md | 2 months ago | |
docker-compose.yaml | 2 months ago | |
go.mod | 2 months ago | |
go.sum | 2 months ago | |
main.go | 2 months ago |
Server receives slack slash commands to read or write a database file. Uses https://git.sysreturn.net/auxreturn/sysreturn-points as file database.
The triggering command is set to /points
.
subcommands are accepted through the “text” parameter of the http body.
help
prints this message
list
returns message listing current scores
<name>[!] [<details>]
Increments the score of the named user given by the caller.
An optional exclaimation-point(!) can be added to the end
of the name to indicate a particularly egregious score
Optionally add details to the event after the name. All text in
the command after the name are considered part of the details
examples
--------
/points josh
adds a point to josh's score
/points josh!
adds a big score to josh's score
/points josh big mustard pun
adds to josh's score with an added log detail of "big mustard pun"
reference: https://api.slack.com/slash-commands https://api.slack.com/docs/verifying-requests-from-slack