Commit c4dd172f authored by Benjamin Graillot's avatar Benjamin Graillot

Commande nick

parent 52f76015
......@@ -41,5 +41,8 @@ class Bot(irc.bot.SingleServerIRCBot):
elif command[0].casefold() == "leave" and level >= 100:
for channel in command[1:]:
conn.part(channel, "Ce n'est qu'un au revoir")
elif command[0].casefold() == "nick" and level >= 100 and len(command) >= 2:
self.nick = command[1]
conn.nick(self.nick)
else:
self.do_command_ext(conn, command, level, source)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment