1
0
Fork 0
forked from swee/MeowNex

Update sweebot.py

This commit is contained in:
Swee 2024-10-12 15:28:17 -07:00
parent a37f9e2bf8
commit 68c9441911

View file

@ -39,7 +39,7 @@ class config:
print(self.chansettings(chan))
if self.chansettings(chan) == []:
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:
self.database.execute("UPDATE chans SET FLAGS = ? WHERE chan = ?", [",".join(flags),chan])
self.conn.commit()