From: Vincent Le Gallic Date: Mon, 13 Oct 2014 18:26:06 +0000 (+0200) Subject: Amélioration de la regexp buffer fail X-Git-Url: http://gitweb.pimeys.fr/?a=commitdiff_plain;h=be09c7f701ee488f5aee86bff402f4f7b4b673ed;p=bots%2Fbasile.git Amélioration de la regexp buffer fail --- diff --git a/config.py b/config.py index df29c99..8b424f1 100644 --- a/config.py +++ b/config.py @@ -84,7 +84,7 @@ amplifier_regexp = u"(une? (?:(?:putain|enfoiré) d(?:e |'))*|)(?:| super )(?: ( gros = [u"gros", u"énorme", u"lourd"] #: config spéciale-iota -buffer_fail_regexp = u'^\s*(.|§|!|/|/|:|)(w|b|win|window|buffer) [0-9]+$' +buffer_fail_regexp = u'(^\s*(\.|\\|§|!|/|\||:|)(w|b|win|window|buffer) [0-9]+$|^(\|§|!|/|\\|:|)b [A-Za-z-]+$)' buffer_fail_answers = [u"Pas de chance !", u"Révisez vos classiques !", u"Encore un effort, je sais que vous pouvez le faire. ;)", u"Where did you learn to type?"]