Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Send notifications to slack for new topics in discourse

License

Notifications You must be signed in to change notification settings

bernd/discourse-slack-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discourse Slack Plugin

ATTENTION: Consider using the offical discourse Slack plugin instead:

This discourse plugin sends a notification to a Slack channel for each newly created topic.

See: https://meta.discourse.org/t/slack-notification-plugin/32200/4

Tested Discourse Versions

  • 1.3.x

Installation

Please read the offical discourse plugin installation documentation.

If you use the (officially recommended) docker setup you can just have to add git clone https://github.com/bernd/discourse-slack-plugin.git to the list of after_code executions in your /var/discourse/containers/app.yml file. (filename might be different in your setup!)

hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - mkdir -p plugins
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/bernd/discourse-slack-plugin.git

After adjusting the config file run ./launcher rebuild app in /var/discourse to stop/rebuild/start the discourse instance.

Configuration

You need to configure an incoming-webhook for your team to use this plugin. The "Webhook URL" is needed for the plugin configuration.

Go to Admin/Settings/Slack, enable the plugin and make sure to add the "Webhook URL" to the slack url field.

Example:

Discourse slack configuration

Slack Example Notification

This is how it looks like in slack. (with a custom emoji for the discourse logo)

Discourse slack example notification

Contributions

All contributions are welcome!

About

Send notifications to slack for new topics in discourse

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •