From 82d8b1b9710cbe9b21cfe20ae9ca30dc5779c130 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Mon, 6 Apr 2015 01:24:11 +0200 Subject: [PATCH] ircname dans config.py --- config.py | 1 + helixbot.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config.py b/config.py index 3fc5a67..653dcce 100644 --- a/config.py +++ b/config.py @@ -8,6 +8,7 @@ debug_stdout = True ### La config irc-related irc_password = "rSx4YgENAGJYs" irc_pseudo = "HelixTheFossil" +ircname = "Helix the Fossil" #: Liste des chans à rejoindre chanlist = ["#bot", "#flood"] #: Liste des chans que le bot ne quitte pas, même sur demande d'un leave de la part d'un OP diff --git a/helixbot.py b/helixbot.py index 72e4303..f9b14c6 100755 --- a/helixbot.py +++ b/helixbot.py @@ -62,7 +62,7 @@ class HelixBot(ircbot.SingleServerIRCBot): def __init__(self, serveur, debug=False): temporary_pseudo = config.irc_pseudo + str(random.randrange(10000, 100000)) ircbot.SingleServerIRCBot.__init__(self, [(serveur, 6667)], - temporary_pseudo, "Ceci est l'ircname du bot", 10) + temporary_pseudo, config.ircname, 10) self.debug = debug self.serveur = serveur self.overops = config.overops -- 2.39.2