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?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
kbairak's avatar
11
kbairak
asked 9 years ago

Comments

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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
jonmbake's avatar
11
jonmbake
answered 9 years ago, updated 9 years ago
link

Comments

see more comments