more noob matching

This commit is contained in:
jomo
2014-07-10 22:58:47 +02:00
parent 07f1a169c3
commit 7b742a3152

10
abot.py
View File

@@ -5,13 +5,13 @@ rank_regex = "visitor|member|builder|trusted|helper|mod|admin|owner|rank"
faq_regex = [
# ranks
"(how.*? (get|be(come)?|)|who is|are you).*? (%s)" % rank_regex,
"(how.*? (get|be(come)?|)|who is|are you).*? (%s)|who owns.* server" % rank_regex,
# WE
"(can|how|why).*? (have|haz|use|get|doesn|can'?t).*? (WorldEdit|WE|W.E.)",
# clearing plot
"(why|how).*? (do|can).*?( /?p clear| clear.*? plot)",
# add someone to a plot
"how.*? add.*? plot"
"((why|how).*? (do|can)|how to).*?( /?p clear| clear.*? plot)",
# add someone to a plot, claim plot
"how.*? (get|claim|own|add).*? plot"
]
faq_regex = [reg_compile(reg.lower()) for reg in faq_regex]
@@ -27,4 +27,4 @@ def onChat(event):
msg(sender, "&aTake a look at &4&l/faq&a and read through the pages.\n ") # trailing space required
event.setCancelled(True)
log("(hidden) %s: '%s'" % (sender.getName(), message))
break
break