X-Git-Url: http://gitweb.pimeys.fr/?a=blobdiff_plain;f=config.py;h=a871d693b40c222863c9574b2b5e2ff2cd7eff56;hb=b58870bba04ffabc1a7469e6fd80e4bc60ebc41c;hp=d714169a326d54e427a11c8d1ea007bf1a2d7106;hpb=a77f390a0d8cc9a4d4e0f66c012c05c1ad189f30;p=bots%2Fparrot.git diff --git a/config.py b/config.py index d714169..a871d69 100644 --- a/config.py +++ b/config.py @@ -117,7 +117,7 @@ helpmsg_overops = u" SAY DO STAY NOSTAY OPS OVEROPS KICK DIE CRASH RESTORE" blacklisted_masks = [("Flo!*@*", [])] #: Regexp utilisée pour parser des quotes -quote_regexp = ur"""\s*(?:"|«|')\s*(?P.+?)\s*(?:"|»|') ?~ ?(?P.+?)\s*(?:$|\n)""" +quote_regexp = ur"""\s*(?:"|«|')\s*(?P.+?)\s*(?:"|»|')\s*~\s*(?P.+?)\s*(?:$|\n)""" #: Regexp utlisée pour parser une quote avec timestamp quote_regexp_with_timestamp = ur"(?P.{19}) " + quote_regexp @@ -130,3 +130,12 @@ quote_file = u"quotes.json" #: Fichier pour exporter les quotes quote_dump_file = u"quotes.txt" + +#: URL où sont disponibles les quotes +quote_display_url = u"http://cerebro.crans.org/parrot-quotes.txt (campus-only)" + +#: Suffixes qui font qu'une commande va utiliser des regexp +regex_suffixes = ["-r", "reg", "-reg", "regex", "-regex", "regexp", "-regexp"] + +#: Nombre maximum d'auteurs qu'on peut demander à afficher +search_max_authors = 20