From: Vincent Le Gallic Date: Mon, 13 Oct 2014 18:32:20 +0000 (+0200) Subject: encore regexp buffer X-Git-Url: http://gitweb.pimeys.fr/?a=commitdiff_plain;h=e146e6a07f664bf224bcc9fce03a8e4c5a7155eb;p=bots%2Fbasile.git encore regexp buffer --- diff --git a/config.py b/config.py index d6ac42b..e0ece95 100644 --- a/config.py +++ b/config.py @@ -86,7 +86,7 @@ gros = [u"gros", u"énorme", u"lourd"] #: config spéciale-iota _prebuffer = u"(\.|\\|§|!|/|\||:|)" _buffer = u"(w|b|win|window|buffer)" -buffer_fail_regexp = u'(^\s*%s%s [0-9]+$|^%s%s [A-Za-z-]+$)' % (_prebuffer, _buffer, _prebuffer, _buffer) +buffer_fail_regexp = u'((^\s*%s%s [0-9]+$)|(^%s%s [A-Za-z-]+$))' % (_prebuffer, _buffer, _prebuffer, _buffer) 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?"]