/slash-xkcd

Slack slash command for xkcd

Primary LanguageJavaScript

slash-xkcd

Wrapper for https://xkcd.com/json.html, so it can be used as a slash command in Slack.

Here's some instructions on how to set up slash commands in Slack.
In the URL field enter https://slash-xkcd.now.sh/, in the command field enter xkcd

Then you can use it like this:
get a random comic: /xkcd
get a specific comic, e.g. no. 123: /xkcd 123