]> gitweb.pimeys.fr Git - bots/basile.git/commitdiff
Et ta mère, elle est innocent(|s|e|es) ?
authorVincent Le Gallic <legallic@crans.org>
Wed, 2 May 2012 16:42:32 +0000 (18:42 +0200)
committerVincent Le Gallic <legallic@crans.org>
Wed, 2 May 2012 16:42:32 +0000 (18:42 +0200)
basile.py

index 3d1febeefcdfcf6b0654e120aade8c429ae0a3ab..51304ed80cc21d1353b4f86a91dea40c1ef3c627 100755 (executable)
--- a/basile.py
+++ b/basile.py
@@ -332,7 +332,8 @@ class Basile(ircbot.SingleServerIRCBot):
                        u"ouvert(|e|s|es)":u"ouverte",
                        u"open":u"open",
                        u"plein(|s|es)":u"pleine",
-                       u"bien plein(|e|s|es)":u"bien pleine"}
+                       u"bien plein(|e|s|es)":u"bien pleine",
+                       u"innocent(|e|s|es)":u"innocente"}
             adj_reg=u"(?P<adjectif>"+u"|".join(adjectifs.keys())+u")"
             reg=u".*(^| )"+debuts+u" "+adj_reg+u"($|,|;|\.| ).*"
             matched=re.match(reg,message)