summaryrefslogtreecommitdiff
path: root/abot.py
diff options
context:
space:
mode:
authorjomo <github@jomo.tv>2014-07-10 01:11:25 +0200
committerjomo <github@jomo.tv>2014-07-10 01:11:25 +0200
commitec9063b6e75b481806dd4cc55cd2f5481eab2840 (patch)
tree1c8b38c135062aea97cbd204e6e891bed784fa3a /abot.py
parent44af737e9e7d76ae90bd56ffeddbb5ae33ea0b70 (diff)
do not require extra words
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 46d1053..65e76db 100644
--- a/abot.py
+++ b/abot.py
@@ -5,13 +5,13 @@ 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)-*? (%s)" % rank_regex,
# WE
- "(can|how|why).+ (have|haz|use|get|doesn|can'?t).+ (WorldEdit|WE|W.E.)",
+ "(can|how|why).*? (have|haz|use|get|doesn|can'?t).*? (WorldEdit|WE|W.E.)",
# clearing plot
- "(why|how).+ (do|can).+( /?p clear| clear.+ plot)",
+ "(why|how).*? (do|can).*?( /?p clear| clear.*? plot)",
# add someone to a plot
- "how.+ add.+ plot"
+ "how.*? add.*? plot"
]
faq_regex = [reg_compile(reg.lower()) for reg in faq_regex]