forked from swee/MeowNex
Update sweebot.py
This commit is contained in:
parent
d8c5f89a26
commit
a37f9e2bf8
1 changed files with 1 additions and 0 deletions
|
@ -36,6 +36,7 @@ class config:
|
||||||
return []
|
return []
|
||||||
def setchanconfig(self, chan: str, flags: list):
|
def setchanconfig(self, chan: str, flags: list):
|
||||||
try:
|
try:
|
||||||
|
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)])
|
||||||
|
|
Loading…
Reference in a new issue