Skip to content

A discourse bot that automatically replies newly created topics with a wiki post

License

Notifications You must be signed in to change notification settings

Andyax/discourse-response-bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discourse Response Bot

This is a Discourse plugin. It works as a bot automatically replying newly created topics within a Discourse forum with a default wiki post. This allows users to collaborate and construct a single answer for topics created.

responsebot-look

Install

Docker install

As seen in a how-to on meta.discourse.org, add this repository's git clone url to your container's app.yml file, at the bottom of the cmd section:

hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - mkdir -p plugins
          - git clone https://github.com/bolariin/discourse-response-bot.git

rebuild your container:

cd /var/discourse
git pull
./launcher rebuild app

Non-docker install

  • Run bundle exec rake plugin:install repo=https://github.com/bolariin/discourse-response-bot.git in your discourse directory
  • In development mode, run bundle exec rake assets:clean
  • In production, recompile your assets: bundle exec rake assets:precompile
  • Restart Discourse

Local Development Install

  • Clone the Discourse Response Bot Repo in a new local folder.
  • Separately clone Discourse Forum in another local folder and install Discourse.
  • In your terminal, go into Discourse folder navigate into the plugins folder. Example cd ~/code/discourse/plugins
  • Create a symlink in this folder by typing the following into your terminal
ln -s ~/whereever_your_cloned_ad_plugin_path_is .
For example: ln -s ~/discourse-response-bot .
  • You can now make changes in your locally held Discourse Response Bot folder and see the effect of your changes when your run rails s in your locally held Discourse Forum files.

Getting Started

  • By default, all settings have been enabled responsebot-plugin-setting 1

Features

  • If you wish to change the default response message of reponse bot, you can achieve this.

    • In the plugin settings for response bot responsebot-plugin-setting
  • If you wish to enable response by the response bot on select categories, you can acheive this.

    • You can achieve this by unselecting "Allow response bot to reply all topics" responsebot-plugin-setting 2

    • In the category settings of the select category, enable "Allow response bot to reply topics in this category" responsebot-category-setting 2

    • Now, the response bot will respond new topics in that category.

  • If you wish to disable response by the response bot on select categories, you can also acheive this.

    • You can achieve this by selecting "Allow response bot to reply all topics" responsebot-plugin-setting 1

    • In the category settings of the select category, enable "Disallow response bot from replying topics in this category" responsebot-category-setting 1

    • Now, the response bot will not respond new topics in that category.

Suggestions/Issues

Feel free to report issues, ask questions or suggest improvements/fixes on Discourse Meta.

License

MIT

About

A discourse bot that automatically replies newly created topics with a wiki post

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 61.6%
  • JavaScript 22.4%
  • HTML 16.0%