X-Git-Url: http://gitweb.pimeys.fr/?a=blobdiff_plain;f=config.py;h=6d49a9758a143ad54f722dbc76a63f1bd7247f16;hb=c8e57be05cbfd7ba46d6828b6fe6cb4e810a70fb;hp=c650d469ade141ff6218a8861c02ade65a130f7e;hpb=fe5896c741f4de89a661c74a6e5e8afec210ee0d;p=bots%2Fparrot.git diff --git a/config.py b/config.py index c650d46..6d49a97 100644 --- a/config.py +++ b/config.py @@ -12,7 +12,7 @@ irc_password = "1iuh0HiJKWjuE" #: Pseudo IRC irc_pseudo = "Parrot" #: Liste des channels à rejoindre -chanlist = ["#bot", "#flood"] +chanlist = ["#bot", "#flood", "#bio"] #: Liste des channels à ne pas quitter stay_channels = ["#bot", "#flood"] #: Liste des channels où se taire @@ -108,3 +108,12 @@ helpmsg_overops = u" SAY DO STAY NOSTAY OPS OVEROPS KICK DIE CRASH" #: Liste de paires de masques ``[black, exceptlist]`` : on blacklistera ce qui match ``black`` #: et aucun élément de ``exceptlist`` blacklisted_masks = [("Flo!*@*", [])] + +#: Regexp utilisée pour parser des quotes +quote_regexp = ur"""\s*("|«|')\s*(?P.+?)\s*("|»|') ?~ ?(?P.+?)\s*$""" + +#: Template pour afficher une quote +quote_template = u"« %(content)s » ~ %(author)s" + +#: Fichier pour stocker les quotes +quote_file = u"quotes.json"