Skip to content

aoneill01/hangman-bot

Repository files navigation

hangman-bot

Slack bot for playing Hangman.

Screenshot

  1. Add bot to channel
  2. Start a new game by /hangman [word]
  3. Guess letters by posting messages consisting of a single letter

Deployment Notes

Notes to myself for if I need to host it again.

  • Apps can be configured at https://api.slack.com/apps
  • Enable events, pointing to /slack/events url of hosted bot
  • Subscribe to bot events:
    • message.channels
    • message.im
    • message.groups
  • Add additional scopes:
    • chat.write
    • reactions.write
  • Add /hangman [word] slash command, using same endpoint as events
  • Host the bot somewhere, such as the Node.js Quickstart droplet
  • Get an API key from https://dictionaryapi.com/ for definition lookups
  • Run index.js with Node, with the following environment variables set:
    • DICTIONARY_API_KEY
    • SLACK_SIGNING_SECRET
    • SLACK_BOT_TOKEN

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published