Skip to content

Golang webservice to implement Slack /roll commands.

Notifications You must be signed in to change notification settings

vonwenm/slackdice

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slackdice

Slackdice is a golang webservice to implement Slack /roll and /rollprivate commands, taking any dice argument supported by my dice library. You can set these commands to be anything you'd like when you configure the integration on the Slack side. Your Slack team will need incoming webhooks configured. See Incoming Webhooks.

Running the service

The service is most easily run as a docker container. The only configuration necessary is your incoming webhook integration URL.

docker run -d -e SLACKDICE_SLACK_URL="<your incoming webhook URL>" -p 8000:8000 --name=slackdice shipway.io/justinian/slackdice

See the docker container builds at https://shipway.io/justinian/slackdice

Installing into Slack

Just add a slash command integration pointing at your service. Slackdice supports two urls, http://your.service:8000/roll and http://your.service:8000/roll/private. In my slack team, I've set up the /roll and /rollprivate commands for these, respectively.

About

Golang webservice to implement Slack /roll commands.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%