A Slackbot for managing D&D character sheets, and allowing die rolls.
- Run "pip3 install -r requirements.txt" to install prereqs
- Copy config.yaml.example to config.yaml
- Go to https://api.slack.com/apps?new_app=1 to create a new app
- Add a 'Bots' feature type
- Put in the name and display name
- Go to "Basic Information" in the sidebar
- Do "Install your app to your workspace"
- Go to "OAuth Tokens"
- Set the Bot User OAuth Token in the "slack_bot_token" key in the config
- Go back to "Basic Information" and find the "App Credentials" section
- Set the Signing Secret in the "slack_signing_secret" key in the config
- Set your assigned port number in the "port" key in the config
- Start your server with: python3 bot.py
- Back in the Slack App Manager, go to the "Basic Information" page
- Click "Add features and functionality", and add "Event Subscriptions"
- Turn it on, and set the URL to: https://XXXX.shop.thebodgery.org/slack/events Replacing 'XXXX' with your assigned URL prefix
- Under "Subscribe to Bot Events", set "app_mention"
- Hit "Save Changes"