From: Vincent Le Gallic Date: Thu, 10 May 2012 21:30:50 +0000 (+0200) Subject: Ajout des adverbes dans les action_trigger X-Git-Url: http://gitweb.pimeys.fr/?a=commitdiff_plain;h=acd0e1038c9552ec5ae4149ea031bbecf5512ff9;p=bots%2Fbasile.git Ajout des adverbes dans les action_trigger --- diff --git a/basile.py b/basile.py index b403352..fdefe8d 100755 --- a/basile.py +++ b/basile.py @@ -230,7 +230,8 @@ def is_merci(chain): def is_tamere(chain): return is_something(chain,config_tamere) def is_action_trigger(chain,pseudo): - return is_something(chain,config_action_trigger,avant=u"^",apres=" %s($|\.| |,|;).*"%(pseudo)) + return is_something(chain,config_action_trigger,avant=u"^", + apres="([a-z]*ment)? %s($|\.| |,|;).*"%(pseudo)) def is_pan(chain): return re.match(u"^(pan|bim|bang)$",unicode(chain,"utf8").lower().strip())