Araeynn commited on
Commit
674699e
·
verified ·
1 Parent(s): 505cd66

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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("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"
 
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"