1
0
Fork 0
forked from swee/MeowNex

Update sweebot.py

This commit is contained in:
Swee 2024-10-12 15:26:29 -07:00
parent d8c5f89a26
commit a37f9e2bf8

View file

@ -36,6 +36,7 @@ class config:
return []
def setchanconfig(self, chan: str, flags: list):
try:
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)])