mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 09:16:19 +00:00
refactor(makeprompt.py): remove print statements
This commit is contained in:
@@ -69,7 +69,6 @@ def get_guild_data(message):
|
|||||||
curs_premium.execute(
|
curs_premium.execute(
|
||||||
"SELECT * FROM data WHERE guild_id = ?", (guid,)
|
"SELECT * FROM data WHERE guild_id = ?", (guid,)
|
||||||
)
|
)
|
||||||
print("GUID: " + str(guid))
|
|
||||||
premium = curs_premium.fetchone()[2]
|
premium = curs_premium.fetchone()[2]
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
premium = 0
|
premium = 0
|
||||||
@@ -395,7 +394,6 @@ async def gpt_prompt(bot, messages, message, data_dict, prompt, guild_data):
|
|||||||
image_bytes = await attachment.read()
|
image_bytes = await attachment.read()
|
||||||
input_content.append({"image": image_bytes})
|
input_content.append({"image": image_bytes})
|
||||||
msgs.append({"role": role, "content": input_content, "name": name})
|
msgs.append({"role": role, "content": input_content, "name": name})
|
||||||
print(f"Image status for guild is {guild_data['images_enabled']}")
|
|
||||||
if (
|
if (
|
||||||
len(msg.attachments) > 0
|
len(msg.attachments) > 0
|
||||||
and role == "user"
|
and role == "user"
|
||||||
|
|||||||
Reference in New Issue
Block a user