[stable] added !demo command, testing
Browse files
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):
|