Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -165,8 +165,8 @@ async def on_message(message):
|
|
165 |
pass
|
166 |
caption = ""
|
167 |
if len(message.attachments) > 0:
|
168 |
-
await message.attachments[0].save(
|
169 |
-
caption = f"(Image:[{C.image_to_text(
|
170 |
if os.path.exists(f"data/{guild_name}/{msgchannel_name}"):
|
171 |
with open(f"data/{guild_name}/{msgchannel_name}", "a") as f:
|
172 |
n = "\n"
|
|
|
165 |
pass
|
166 |
caption = ""
|
167 |
if len(message.attachments) > 0:
|
168 |
+
await message.attachments[0].save('ip')
|
169 |
+
caption = f"(Image:[{C.image_to_text('ip')}])"
|
170 |
if os.path.exists(f"data/{guild_name}/{msgchannel_name}"):
|
171 |
with open(f"data/{guild_name}/{msgchannel_name}", "a") as f:
|
172 |
n = "\n"
|