{"id":17049052,"url":"https://github.com/toddself/slack-dnd","last_synced_at":"2025-04-12T15:33:23.473Z","repository":{"id":17785982,"uuid":"20660288","full_name":"toddself/slack-dnd","owner":"toddself","description":"D\u0026D slash commands for slack","archived":false,"fork":false,"pushed_at":"2014-06-09T20:09:46.000Z","size":220,"stargazers_count":36,"open_issues_count":2,"forks_count":32,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-10T16:08:56.849Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/toddself.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-09T19:59:14.000Z","updated_at":"2024-12-15T14:48:29.000Z","dependencies_parsed_at":"2022-07-25T21:18:37.680Z","dependency_job_id":null,"html_url":"https://github.com/toddself/slack-dnd","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toddself%2Fslack-dnd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toddself%2Fslack-dnd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toddself%2Fslack-dnd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toddself%2Fslack-dnd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toddself","download_url":"https://codeload.github.com/toddself/slack-dnd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248589880,"owners_count":21129695,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T09:53:44.766Z","updated_at":"2025-04-12T15:33:23.438Z","avatar_url":"https://github.com/toddself.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Slack D\u0026D\n\nA collection of endpoints to help you play D\u0026D in your slack chat room.  \n\n## Requirements\n\n1. A publically accessible server running node (or abilty to reverse proxy back to your node server);\n1. node.js\n\n## Installation\n\n```\nnpm i -g slack-dnd\nslack-dnd --host [hostname || 127.0.0.1] --port [port || 3000] --token [Your Slack integration token] --group [Group ID to restrict usage to]\n```\n\n## Slack set up\n\nIf you add a custom emoji for the `:dm:` command, it'll use that as the avatar for the icon.  I highly recommend using a visage of [dungeon master](http://www.dungeonsdragonscartoon.com/2009/08/dungeon-master.html) from the 80s D\u0026D cartoon!\n\n\n### Dice\n1. Add a [new slash command](https://slack.com/services/new/slash-commands) with the following settings:\n  * **Command**: `/roll`\n  * **URL**: `http://yourhost.com/roll`\n  * **Method**: `get`\n  * **Label**: `roll dice!`\n1. Set up a new [incoming webhook](https://slack.com/services/new/incoming-webhook)\n  * Choose a `channel` to integrate with (this doesn't matter -- it'll always respond to the channel you called it from)\n  * Get your `token` from this page (this is what you'll use when you launch the server)\n\nOr if you like pictures: \n![slash command](/assets/slack-integration.png)\n\n![webhook](/assets/slack-webhook.png)  \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoddself%2Fslack-dnd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoddself%2Fslack-dnd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoddself%2Fslack-dnd/lists"}