diff --git a/bot.py b/bot.py index f10f662..caea177 100644 --- a/bot.py +++ b/bot.py @@ -34,7 +34,7 @@ class IRCBot(): def write_config(self): with open("config.json", "w") as f: - dump(self.config, indent=2) + dump(self.config, f, indent=2) def join_channel(self, channel): self.sendline(f"JOIN {channel}")