add file object to dump call

Esse commit está contido em:
= 2025-04-04 03:28:14 +00:00
commit 32acb60e10

2
bot.py
Ver arquivo

@ -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}")