First time here? Check out the FAQ!
0

What would the best way to integrate the hosted version of askbot with slack be?

There is a django plugin that does this, but it applies to self-hosted instances. Slack also makes it very easy to subscribe chat channels to RSS feeds, but in our case, our forum is supposed to be private so the feed sits behind authentication.

However, slack is supposed to be very configurable, so even if there was a callback URL that askbot posted to whenever an event happened, I'm pretty confident that we could make it work with slack. Is there a thing like that? Has anyone so far made it work?

kbairak's avatar
11
kbairak
asked 2015-09-07 03:54:34 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

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.

jonmbake's avatar
11
jonmbake
answered 2015-09-16 20:02:22 -0500, updated 2015-09-16 20:08:14 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments