craigsheen / slack-faq-bot

A Slack Bot to store/find FAQ

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Slack FAQ Bot

Alt text

A simple slack bot which can store FAQs (questions and answers) and query them.

Still a WIP but very usable.

Usage

  • help: Shows help information
  • store q: <question> a: <answer>: Stores a new question/answer
  • find <query>: Queries stored FAQs questions and answers and shows top 3 matches. Also shows link to see all found by query.

Deployment

  • Create a new Bot Integration under services/new/bot.
  • Set ENV Var SLACK_API_TOKEN from the Bot integration settings on Slack
  • Set ENV Var HOST which is where the FAQ Bot will be hosted. (see below)
  • Deploy and enjoy!

TODO

  • Instead of having to set host, find a way to connect to Rails.
  • Find a way to not require the ActiveRecord::Base.establish_connection
  • Tests
  • Allow editing/deleting on web

About

A Slack Bot to store/find FAQ


Languages

Language:Ruby 76.4%Language:HTML 16.4%Language:CSS 4.4%Language:JavaScript 2.7%