lunarflu HF Staff commited on
Commit
84baa8a
·
1 Parent(s): a6e38dd

[demo] file >>> url

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -117,9 +117,10 @@ async def demo(ctx):
117
  try:
118
  # https://cdn.discordapp.com/attachments/932563860597121054/1113483403258499142/image.png
119
  #jojofile =
120
- deepfloydfile = 'https://cdn.discordapp.com/attachments/932563860597121054/1113483403258499142/image.png'
121
  thread = await ctx.message.create_thread(name=f'{ctx.author} Demo Thread')
122
- await thread.send(f'{ctx.author.mention}Here is a demo for the !deepfloydif command!', file=discord.File(deepfloydfile))
 
 
123
  except Exception as e:
124
  print(f"Error: {e}")
125
  await ctx.message.add_reaction('❌')
 
117
  try:
118
  # https://cdn.discordapp.com/attachments/932563860597121054/1113483403258499142/image.png
119
  #jojofile =
 
120
  thread = await ctx.message.create_thread(name=f'{ctx.author} Demo Thread')
121
+ await thread.send(f'{ctx.author.mention}Here is a demo for the !deepfloydif command!')
122
+ await asyncio.sleep(0.5)
123
+ await thread.send(f'https://cdn.discordapp.com/attachments/932563860597121054/1113483403258499142/image.png')
124
  except Exception as e:
125
  print(f"Error: {e}")
126
  await ctx.message.add_reaction('❌')