[disney] removed
Browse files
app.py
CHANGED
@@ -189,36 +189,7 @@ async def jojo(ctx):
|
|
189 |
await ctx.message.remove_reaction('<a:loading:1114111677990981692>', bot.user)
|
190 |
await thread.edit(archived=True)
|
191 |
|
192 |
-
|
193 |
-
# Disney β
|
194 |
-
@bot.command()
|
195 |
-
async def disney(ctx):
|
196 |
-
try:
|
197 |
-
if await safetychecks(ctx): #β
|
198 |
-
await ctx.message.add_reaction('<a:loading:1114111677990981692>')
|
199 |
-
thread = await ctx.message.create_thread(name=f'Disney | {ctx.author}', auto_archive_duration=60)
|
200 |
-
if ctx.message.attachments:
|
201 |
-
await thread.send(f'{ctx.author.mention} Generating images in thread, can take ~1 minute...')
|
202 |
-
attachment = ctx.message.attachments[0]
|
203 |
-
style = 'Disney'
|
204 |
-
im = await asyncio.get_running_loop().run_in_executor(None, jojogan.predict, attachment.url, 'disney')
|
205 |
-
await thread.send(f'{ctx.author.mention} Here is the {style} version of it', file=discord.File(im))
|
206 |
-
await ctx.message.add_reaction('<:agree:1098629085955113011>') # img + face
|
207 |
-
await ctx.message.remove_reaction('<a:loading:1114111677990981692>', bot.user)
|
208 |
-
await thread.edit(archived=True)
|
209 |
-
else: # no image
|
210 |
-
await thread.send(f"{ctx.author.mention} No attachments to be found...Can't animify dat! Try sending me an image π")
|
211 |
-
await ctx.message.add_reaction('<:disagree:1098628957521313892>')
|
212 |
-
await ctx.message.remove_reaction('<a:loading:1114111677990981692>', bot.user)
|
213 |
-
await thread.edit(archived=True)
|
214 |
-
|
215 |
-
except Exception as e: # no generation / img + no face
|
216 |
-
await fullqueue(e, thread)
|
217 |
-
print(f"Error: {e}")
|
218 |
-
await thread.send(f"{ctx.author.mention} Error: {e}")
|
219 |
-
await ctx.message.add_reaction('<:disagree:1098628957521313892>')
|
220 |
-
await ctx.message.remove_reaction('<a:loading:1114111677990981692>', bot.user)
|
221 |
-
await thread.edit(archived=True)
|
222 |
#----------------------------------------------------------------------------------------------------------------------------------------------
|
223 |
# Spider-Verse β
|
224 |
@bot.command()
|
|
|
189 |
await ctx.message.remove_reaction('<a:loading:1114111677990981692>', bot.user)
|
190 |
await thread.edit(archived=True)
|
191 |
|
192 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
193 |
#----------------------------------------------------------------------------------------------------------------------------------------------
|
194 |
# Spider-Verse β
|
195 |
@bot.command()
|