[jojo et al] added auto_archive_duration=1, [dfif] thread name >>> DeepfloydIF {prompt}
Browse files
app.py
CHANGED
|
@@ -161,7 +161,7 @@ async def jojo(ctx):
|
|
| 161 |
try:
|
| 162 |
if await safetychecks(ctx): #β
|
| 163 |
await ctx.message.add_reaction('<a:loading:1114111677990981692>')
|
| 164 |
-
thread = await ctx.message.create_thread(name=f'{ctx.author}
|
| 165 |
if ctx.message.attachments:
|
| 166 |
await thread.send(f'{ctx.author.mention} Generating images in thread, can take ~1 minute...yare yare, daze ...')
|
| 167 |
attachment = ctx.message.attachments[0]
|
|
@@ -173,17 +173,17 @@ async def jojo(ctx):
|
|
| 173 |
|
| 174 |
#testing animated
|
| 175 |
# <a:hugging_spin:1102656012621713488>
|
| 176 |
-
await ctx.message.add_reaction('<:agree:1098629085955113011>') #
|
| 177 |
await ctx.message.remove_reaction('<a:loading:1114111677990981692>', bot.user)
|
| 178 |
else: # no image
|
| 179 |
await thread.send(f"{ctx.author.mention} No attachments to be found...Can't animify dat! Try sending me an image π")
|
| 180 |
-
await ctx.message.add_reaction('<:disagree:1098628957521313892>')
|
| 181 |
await ctx.message.remove_reaction('<a:loading:1114111677990981692>', bot.user)
|
| 182 |
except Exception as e: # no generation / img + no face
|
| 183 |
await fullqueue(e, thread)
|
| 184 |
print(f"Error: {e}")
|
| 185 |
await thread.send(f"{ctx.author.mention} Error: {e}")
|
| 186 |
-
await ctx.message.add_reaction('<:disagree:1098628957521313892>')
|
| 187 |
await ctx.message.remove_reaction('<a:loading:1114111677990981692>', bot.user)
|
| 188 |
|
| 189 |
#----------------------------------------------------------------------------------------------------------------------------------------------
|
|
@@ -193,7 +193,7 @@ async def disney(ctx):
|
|
| 193 |
try:
|
| 194 |
if await safetychecks(ctx): #β
|
| 195 |
await ctx.message.add_reaction('<a:loading:1114111677990981692>')
|
| 196 |
-
thread = await ctx.message.create_thread(name=f'{ctx.author}
|
| 197 |
if ctx.message.attachments:
|
| 198 |
await thread.send(f'{ctx.author.mention} Generating images in thread, can take ~1 minute...')
|
| 199 |
attachment = ctx.message.attachments[0]
|
|
@@ -221,7 +221,7 @@ async def spidey(ctx):
|
|
| 221 |
try:
|
| 222 |
if await safetychecks(ctx): #β
|
| 223 |
await ctx.message.add_reaction('<a:loading:1114111677990981692>')
|
| 224 |
-
thread = await ctx.message.create_thread(name=f'{ctx.author}
|
| 225 |
if ctx.message.attachments:
|
| 226 |
await thread.send(f'{ctx.author.mention} Generating images in thread, can take ~1 minute...')
|
| 227 |
attachment = ctx.message.attachments[0]
|
|
@@ -248,7 +248,7 @@ async def sketch(ctx):
|
|
| 248 |
try:
|
| 249 |
if await safetychecks(ctx): #β
|
| 250 |
await ctx.message.add_reaction('<a:loading:1114111677990981692>')
|
| 251 |
-
thread = await ctx.message.create_thread(name=f'{ctx.author}
|
| 252 |
if ctx.message.attachments:
|
| 253 |
await thread.send(f'{ctx.author.mention} Generating images in thread, can take ~1 minute...')
|
| 254 |
attachment = ctx.message.attachments[0]
|
|
@@ -317,7 +317,7 @@ async def deepfloydif(ctx, *, prompt: str):
|
|
| 317 |
if await safetychecks(ctx): #β
|
| 318 |
await ctx.message.add_reaction('<a:loading:1114111677990981692>')
|
| 319 |
dfif_command_message_id = ctx.message.id # we will use this in some magic later on
|
| 320 |
-
thread = await ctx.message.create_thread(name=f'{
|
| 321 |
# create thread -> send new message inside thread + combined_image -> add reactions -> dfif2
|
| 322 |
|
| 323 |
#current_time = int(time.time())
|
|
|
|
| 161 |
try:
|
| 162 |
if await safetychecks(ctx): #β
|
| 163 |
await ctx.message.add_reaction('<a:loading:1114111677990981692>')
|
| 164 |
+
thread = await ctx.message.create_thread(name=f'Jojo | {ctx.author}', auto_archive_duration=1)
|
| 165 |
if ctx.message.attachments:
|
| 166 |
await thread.send(f'{ctx.author.mention} Generating images in thread, can take ~1 minute...yare yare, daze ...')
|
| 167 |
attachment = ctx.message.attachments[0]
|
|
|
|
| 173 |
|
| 174 |
#testing animated
|
| 175 |
# <a:hugging_spin:1102656012621713488>
|
| 176 |
+
await ctx.message.add_reaction('<:agree:1098629085955113011>') # β
|
| 177 |
await ctx.message.remove_reaction('<a:loading:1114111677990981692>', bot.user)
|
| 178 |
else: # no image
|
| 179 |
await thread.send(f"{ctx.author.mention} No attachments to be found...Can't animify dat! Try sending me an image π")
|
| 180 |
+
await ctx.message.add_reaction('<:disagree:1098628957521313892>') # β
|
| 181 |
await ctx.message.remove_reaction('<a:loading:1114111677990981692>', bot.user)
|
| 182 |
except Exception as e: # no generation / img + no face
|
| 183 |
await fullqueue(e, thread)
|
| 184 |
print(f"Error: {e}")
|
| 185 |
await thread.send(f"{ctx.author.mention} Error: {e}")
|
| 186 |
+
await ctx.message.add_reaction('<:disagree:1098628957521313892>') # β
|
| 187 |
await ctx.message.remove_reaction('<a:loading:1114111677990981692>', bot.user)
|
| 188 |
|
| 189 |
#----------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
| 193 |
try:
|
| 194 |
if await safetychecks(ctx): #β
|
| 195 |
await ctx.message.add_reaction('<a:loading:1114111677990981692>')
|
| 196 |
+
thread = await ctx.message.create_thread(name=f'Disney | {ctx.author}', auto_archive_duration=1)
|
| 197 |
if ctx.message.attachments:
|
| 198 |
await thread.send(f'{ctx.author.mention} Generating images in thread, can take ~1 minute...')
|
| 199 |
attachment = ctx.message.attachments[0]
|
|
|
|
| 221 |
try:
|
| 222 |
if await safetychecks(ctx): #β
|
| 223 |
await ctx.message.add_reaction('<a:loading:1114111677990981692>')
|
| 224 |
+
thread = await ctx.message.create_thread(name=f'Spider-verse | {ctx.author}', auto_archive_duration=1)
|
| 225 |
if ctx.message.attachments:
|
| 226 |
await thread.send(f'{ctx.author.mention} Generating images in thread, can take ~1 minute...')
|
| 227 |
attachment = ctx.message.attachments[0]
|
|
|
|
| 248 |
try:
|
| 249 |
if await safetychecks(ctx): #β
|
| 250 |
await ctx.message.add_reaction('<a:loading:1114111677990981692>')
|
| 251 |
+
thread = await ctx.message.create_thread(name=f'Sketch | {ctx.author}', auto_archive_duration=1)
|
| 252 |
if ctx.message.attachments:
|
| 253 |
await thread.send(f'{ctx.author.mention} Generating images in thread, can take ~1 minute...')
|
| 254 |
attachment = ctx.message.attachments[0]
|
|
|
|
| 317 |
if await safetychecks(ctx): #β
|
| 318 |
await ctx.message.add_reaction('<a:loading:1114111677990981692>')
|
| 319 |
dfif_command_message_id = ctx.message.id # we will use this in some magic later on
|
| 320 |
+
thread = await ctx.message.create_thread(name=f'DeepfloydIF | {prompt}', auto_archive_duration=1) # could also just use prompt, no deepfloydif
|
| 321 |
# create thread -> send new message inside thread + combined_image -> add reactions -> dfif2
|
| 322 |
|
| 323 |
#current_time = int(time.time())
|