add file object to dump call

This commit is contained in:
= 2025-04-04 03:28:14 +00:00
parent 78b663436b
commit 32acb60e10

2
bot.py
View File

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