1
0
Fork 0
forked from swee/MeowNex

Update sweebot.py

This commit is contained in:
Swee 2024-10-12 14:41:06 -07:00
parent 56e37d5f67
commit 54ca5801e7

View file

@ -36,8 +36,7 @@ class config:
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(?, '+config');", [chan]) self.database.execute("INSERT INTO chans (chan, flags) values(?, '+config');", [chan])
flag = self.chansettings(chan) + flags self.database.execute("UPDATE chans SET FLAGS = ? WHERE chan = ?", [",".join(flags),chan])
self.database.execute("UPDATE chans SET FLAGS = ? WHERE chan = ?", [",".join(flag),chan])
self.conn.commit() self.conn.commit()
except: except:
print(traceback.format_exc()) print(traceback.format_exc())