From 8b8123c4bbc15ca535dc9552ae7d2ff38d232575 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Fri, 25 Aug 2017 10:23:48 +0200 Subject: [PATCH] Feature "deviens" pour changer le pseudo du bot au runtime --- saturnin.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/saturnin.py b/saturnin.py index 5babda4..e1ac570 100755 --- a/saturnin.py +++ b/saturnin.py @@ -515,6 +515,11 @@ class Saturnin(ircbot.SingleServerIRCBot): self.sendscore(auteur) elif cmd == "scores": self.sendscores(auteur) + elif cmd in [u"deviens", u"pseudo"]: + if auteur in self.ops: + become = args + serv.nick(become) + log(self.serveur, channel, auteur, message + "[successful]") if is_pan(message): self.shot(channel, auteur) -- 2.39.2