sent_message -> ctx.message
Browse files
app.py
CHANGED
@@ -102,9 +102,10 @@ async def deepfloydif(ctx, *, prompt: str):
|
|
102 |
sent_message = await ctx.reply('Creating thread...')
|
103 |
|
104 |
#3
|
105 |
-
#
|
106 |
# could replace sent_message with initial user command message? try later
|
107 |
-
thread = await
|
|
|
108 |
|
109 |
#4
|
110 |
with open(combined_image_path, 'rb') as f:
|
@@ -113,7 +114,9 @@ async def deepfloydif(ctx, *, prompt: str):
|
|
113 |
# bot reacts with appropriate emojis to the post, both showing the user what options they have,
|
114 |
# as well as showing which post to react to.
|
115 |
for emoji in ['1️⃣', '2️⃣', '3️⃣', '4️⃣']:
|
116 |
-
await threadmsg.add_reaction(emoji)
|
|
|
|
|
117 |
|
118 |
reaction, user = await bot.wait_for('reaction_add', check=check_reaction)
|
119 |
if str(reaction.emoji) == '1️⃣':
|
|
|
102 |
sent_message = await ctx.reply('Creating thread...')
|
103 |
|
104 |
#3
|
105 |
+
#ctx.message
|
106 |
# could replace sent_message with initial user command message? try later
|
107 |
+
thread = await ctx.message.create_thread(name='Image Upscaling Thread')
|
108 |
+
#thread = await sent_message.create_thread(name='Image Upscaling Thread')
|
109 |
|
110 |
#4
|
111 |
with open(combined_image_path, 'rb') as f:
|
|
|
114 |
# bot reacts with appropriate emojis to the post, both showing the user what options they have,
|
115 |
# as well as showing which post to react to.
|
116 |
for emoji in ['1️⃣', '2️⃣', '3️⃣', '4️⃣']:
|
117 |
+
await threadmsg.add_reaction(emoji)
|
118 |
+
|
119 |
+
|
120 |
|
121 |
reaction, user = await bot.wait_for('reaction_add', check=check_reaction)
|
122 |
if str(reaction.emoji) == '1️⃣':
|