fix configuration overwrite bug

This commit is contained in:
= 2025-04-04 03:31:34 +00:00
parent 32acb60e10
commit 4b53cc0dca

2
bot.py
View File

@ -26,7 +26,7 @@ class IRCBot():
self.sendline(f"NICK {self.nick}")
self.sendline(f"USER {self.nick} 0 * :{self.config['realname']}")
for channel in self.config["channels"]:
self.join_channel(channel)
self.sendline(f"JOIN {channel}")
self.commands = [
("invite", self.invite)
("kick", self.kick)