Ask Your Question
0

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

asked 2015-09-07 03:54:34 -0500

kbairak gravatar image

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-09-16 20:02:22 -0500

jonmbake gravatar image

updated 2015-09-16 20:08:14 -0500

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-09-07 03:54:34 -0500

Seen: 11,651 times

Last updated: Sep 16 '15