FaqBot

What it does

learn a number of key-message pairs an on demand post the message corresponding key back into a channel

commands

these need to issues in a channel where FaqBot is in:
  • !FAQlearn key message
    admin only, message can contain whitespace, newlines need to be "\n" explicitly
  • !FAQ key
    posts the message for key in channel, if key doesn't exist nothing happens. 5 second delay enforced between posts
  • !FAQchan channel1 channel2 ...
    joins channels (not remembered across sessions)
  • !FAQlist
    list all available keys
  • !FAQ!chan channel1 channel2 ...
    leave channels
  • !FAQlink key activation_phrase
    admin only, links the faq addressed by key to an activation phrase, when a sentence containing such activation phrase gets written, the faq will be auto triggered

where FAQ is the faqcmd set in Main.conf

How to get a working faqbot

git clone git://springlobby.info/git/spring/pythonbots.git
cd pythonbots
git submodule init
git submodule update
cd faqbot
./init.sh
#edit Main.conf to hearts content
./run.sh