Ask Your Question

jonmbake's profile - activity

2015-09-16 20:08:14 -0500 received badge  Editor (source)
2015-09-16 20:05:46 -0500 received badge  Teacher (source)
2015-09-16 20:02:22 -0500 answered a question What would the best way to integrate the hosted version of askbot with slack be?

I created this plugin for self hosted instances, using Slack Webhooks: https://github.com/jonmbake/askbot-slack. It works by using Django's Signals on the Post model and calling the web hook on create. It is really easy to setup and configure:

  1. pip install askbot_slack
  2. Add 'askbot_slack.SlackMiddleware' to MIDDLEWARE_CLASSES of Askbot's settings.py
  3. Add the askbot_slack_config.py file to the class path with the following properties and your Slack config values:

config = { "SLACK_POST_USERNAME": '', "SLACK_POST_CHANNEL": '', "SLACK_WEBHOOK_URL": '' }

It would work with hosted instances; you just need the maintainer to set it up.