lunarflu HF Staff commited on
Commit
a6e38dd
Β·
1 Parent(s): 4092d24

[stable] added !demo command, testing

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -112,6 +112,18 @@ async def safetychecks(ctx):
112
  print(f"Error: safetychecks failed somewhere, command will not continue.")
113
  await ctx.message.reply(f"❌ <@811235357663297546> SC failed somewhere ❌") # this will always ping, as long as the bot has access to the channel
114
  #----------------------------------------------------------------------------------------------------------------------------------------------
 
 
 
 
 
 
 
 
 
 
 
 
115
  # jojo βœ…
116
  @bot.command()
117
  async def jojo(ctx):
 
112
  print(f"Error: safetychecks failed somewhere, command will not continue.")
113
  await ctx.message.reply(f"❌ <@811235357663297546> SC failed somewhere ❌") # this will always ping, as long as the bot has access to the channel
114
  #----------------------------------------------------------------------------------------------------------------------------------------------
115
+ @bot.command()
116
+ 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('❌')
126
+ #----------------------------------------------------------------------------------------------------------------------------------------------
127
  # jojo βœ…
128
  @bot.command()
129
  async def jojo(ctx):