add file object to dump call
This commit is contained in:
parent
78b663436b
commit
32acb60e10
2
bot.py
2
bot.py
@ -34,7 +34,7 @@ class IRCBot():
|
|||||||
|
|
||||||
def write_config(self):
|
def write_config(self):
|
||||||
with open("config.json", "w") as f:
|
with open("config.json", "w") as f:
|
||||||
dump(self.config, indent=2)
|
dump(self.config, f, indent=2)
|
||||||
|
|
||||||
def join_channel(self, channel):
|
def join_channel(self, channel):
|
||||||
self.sendline(f"JOIN {channel}")
|
self.sendline(f"JOIN {channel}")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user