Habitica extension to send and receive messages from a Habitica Group Chat to a Slack Channel.
As well as a Slack channel and a Habitica account, you need to create a slack app to manage message delivery:
- Setup Event Subscriptions in Slack to support sending messages from Slack to Habitica
- Setup Incoming WebHooks in Slack to support receiving messages from Habitica to Slack
- Browse to Event Subscriptions
- Enable Events: On
- Request URL: <heroku-app-url>/sync_message_to_habitica e.g. https://myapp.herokuapp.test/sync_message_to_habitica
- Subscribe to Workspace Events > Add Workspace Event: message.channels
- Subscribe to Workspace Events > Add Workspace Event: message.groups
- Browse to Incoming Webhooks
- Activate Incoming Webhooks: On
- Webhook URLs for Your Workspace > Add New Webhook to Workspace: Post to: <your-slack-channel> e.g. #Habitica
- Visit <heroku-app-url>/setup_habitica_webhook to setup the Habitica webhook
Not everything in the Heroku setup can be automated with the Deploy button. You will need to add the command for the scheduler manually.
- Browse to https://scheduler.heroku.com/dashboard
- Add a new job as follows
- Command: python manage.py sync_messages_to_slack
- Dyno size: Free
- Frequency: Every 10 minutes