add file object to dump call
Esse commit está contido em:
pai
78b663436b
commit
32acb60e10
2
bot.py
2
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}")
|
||||
|
Carregando…
x
Referência em uma nova issue
Block a user