summaryrefslogtreecommitdiff
path: root/abot.py
diff options
context:
space:
mode:
authorjomo <github@jomo.tv>2014-07-10 01:21:14 +0200
committerjomo <github@jomo.tv>2014-07-10 01:21:14 +0200
commit755bd35abb6e2547e8ab150ab244adcd1bc34ded (patch)
tree62fca7cee3cbad6c8b31c969465fe812cebd557b /abot.py
parentec9063b6e75b481806dd4cc55cd2f5481eab2840 (diff)
fix typo, nicer output
Diffstat (limited to 'abot.py')
-rw-r--r--abot.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/abot.py b/abot.py
index 65e76db..03dda5c 100644
--- a/abot.py
+++ b/abot.py
@@ -5,7 +5,7 @@ rank_regex = "visitor|member|builder|trusted|helper|mod|admin|owner|rank"
faq_regex = [
# ranks
- "(how-*? (get|be(come)?|)|who is)-*? (%s)" % rank_regex,
+ "(how.*? (get|be(come)?|)|who is|are you).*? (%s)" % rank_regex,
# WE
"(can|how|why).*? (have|haz|use|get|doesn|can'?t).*? (WorldEdit|WE|W.E.)",
# clearing plot
@@ -23,8 +23,8 @@ def onChat(event):
for regex in faq_regex:
if regex.search(message):
plugHeader(sender, "AnswerBot")
- msg(sender, "&aIt looks like you aksed a question that is likely answered in our FAQ.")
- msg(sender, "&aPlease take a look at the &4&l/faq&a command and read through the pages.")
+ msg(sender, "&aLooks like you're asking something that's likely in our FAQ.")
+ msg(sender, "&aTake a look at &4&l/faq&a and read through the pages.\n")
event.setCancelled(True)
- log("(Answerbot) hiding message from %s: '%s'" % (sender.getName(), message))
+ log("(hidden) %s: '%s'" % (sender.getName(), message))
break \ No newline at end of file