1
0
Fork 0
forked from swee/MeowNex

Update sweebot.py

This commit is contained in:
Swee 2024-10-12 15:29:29 -07:00
parent 68c9441911
commit 6f8a5c3e05

View file

@ -39,7 +39,7 @@ class config:
print(self.chansettings(chan)) print(self.chansettings(chan))
if self.chansettings(chan) == []: if self.chansettings(chan) == []:
print("[!!!] Channel doesn't exist in config") print("[!!!] Channel doesn't exist in config")
self.database.execute("INSERT INTO chans (chan, flags) values(?, ?);", [chan, "+config" + ",".join(flags)]) self.database.execute("INSERT INTO chans (chan, flags) values(?, ?);", [chan, "+config " + ",".join(flags)])
else: else:
self.database.execute("UPDATE chans SET FLAGS = ? WHERE chan = ?", [",".join(flags),chan]) self.database.execute("UPDATE chans SET FLAGS = ? WHERE chan = ?", [",".join(flags),chan])
self.conn.commit() self.conn.commit()