update filename

This commit is contained in:
= 2025-04-04 07:17:29 +00:00
parent ab7fe85d6e
commit 6a4c104ae9

4
bot.py
View File

@ -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"]