Skip to content

Commit

Permalink
Added a listfaq comand to the faq plugin
Browse files Browse the repository at this point in the history
For the time being it simply makes the bot spit out a list of available faq
entries.
  • Loading branch information
Christopher Glass committed Nov 29, 2011
1 parent 10e4241 commit 4fb7bcc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/plugins/faq.py
Expand Up @@ -35,6 +35,10 @@ def command_addfaq(self, rest, user, channel):
self.faqs[identifier] = answer
self.write()
channel.msg('Added FAQ entry for %r' % identifier)

def command_listfaq(self, rest, user, channel):
for faq in self.faqs.keys():
channel.msg('%s' % faq)

def command_faq(self, rest, user, channel):
answer = self.faqs.get(rest, None)
Expand Down

0 comments on commit 4fb7bcc

Please sign in to comment.