update filename
This commit is contained in:
parent
ab7fe85d6e
commit
6a4c104ae9
4
bot.py
4
bot.py
@ -18,10 +18,10 @@ helptext_short = "see https://git.tilde.town/nebula/chatterbot for instructions"
|
||||
class IRCBot():
|
||||
def __init__(self):
|
||||
try:
|
||||
with open("config.json", "r") as f:
|
||||
with open("state.json", "r") as f:
|
||||
self.state = load(f)
|
||||
except FileNotFoundError:
|
||||
exit("no config.json")
|
||||
exit("no state.json")
|
||||
self.s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
self.s.connect((host, port))
|
||||
self.nick = self.state["nick"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user