mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 17:24:55 +00:00
Update makeprompt.py
This commit is contained in:
@@ -47,7 +47,10 @@ async def chat_process(self, message):
|
||||
try:
|
||||
cp.execute("SELECT * FROM channels WHERE guild_id = ?", (message.guild.id,)) # get the channels in the premium database
|
||||
if premium: channels = cp.fetchone()[1:] # if the guild is premium, add the channels to the channels list
|
||||
except: channels = [] # if the guild is not premium, the channels list is empty
|
||||
debug("Premium channels: "+str(channels))
|
||||
except:
|
||||
debug("Error while getting premium channels")
|
||||
channels = [] # if the guild is not premium, the channels list is empty
|
||||
|
||||
if api_key is None: return # if the api key is not set, return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user