fix
This commit is contained in:
7
main.py
7
main.py
@@ -48,8 +48,11 @@ class Bot(commands.Bot):
|
||||
tog = 1
|
||||
rows = self.confmsg.execute("SELECT channel_id FROM channel WHERE name=? AND server_id=? AND tog=?",(name, server_id, tog))
|
||||
res = rows.fetchone()
|
||||
channel=" ".join(res)
|
||||
return channel
|
||||
if res == None:
|
||||
return "None"
|
||||
else:
|
||||
channel=" ".join(res)
|
||||
return channel
|
||||
|
||||
async def select(self, name, server_id, channel_id) -> None:
|
||||
rows = self.confmsg.execute("SELECT tog FROM channel WHERE name=? AND server_id=? AND channel_id=?", (name, server_id, channel_id,))
|
||||
|
||||
Reference in New Issue
Block a user