async def dag_5g1g(self, ctx, item1: GetAvatar, item2: GetAvatar): """ Ya know, the five guys and one girl thing... """ async with ctx.channel.typing(): image = await self.bot.dagpi.image_process( ImageFeatures.five_guys_one_girl(), url=item1, url2=item2) await self.dag_embed(ctx, image, ctx.command.name)
async def blackguyes(self, ctx, member: discord.Member = None): await ctx.trigger_typing() if member is None: member = ctx.author url = str( member.avatar_url_as(format="png", static_format="png", size=1024)) #img = await self.bot.dagp.image_process(ImageFeatures.five_guys_one_girl(), url, # url2=str(ctx.message.author.avatar_url)) img = await self.bot.dagp.image_process( ImageFeatures.five_guys_one_girl(), str(ctx.message.author.avatar_url), url2=url) await ctx.send( file=discord.File(fp=img.image, filename=f"pixel.{img.format}"))
async def _5g1g( self, ctx, thing: typing.Union[discord.Member, discord.PartialEmoji, discord.Emoji, str], thing2: typing.Union[discord.Member, discord.PartialEmoji, discord.Emoji, str] = None, ): async with ctx.channel.typing(): url = await self.get_url(ctx, thing) url2 = await self.get_url(ctx, thing2) img = await dagpi.image_process(ImageFeatures.five_guys_one_girl(), url=url, url2=url2) file = discord.File(fp=img.image, filename=f"pixel.{img.format}") await ctx.send(file=file)
async def fgog(self, ctx, user1: discord.Member, user2: discord.Member): async with ctx.typing(): url = str( user1.avatar_url_as(static_format='png', format='png', size=512)) url2 = str( user2.avatar_url_as(static_format='png', format='png', size=512)) img = await self.bot.dagpi.image_process( ImageFeatures.five_guys_one_girl(), url=url, url2=url2) file = discord.File(fp=img.image, filename=f"five_guys_one_girl.{img.format}") embed = discord.Embed(colour=self.bot.embed_color, timestamp=ctx.message.created_at).set_footer( text=f"Requested by {ctx.author}", icon_url=ctx.author.avatar_url) embed.set_author(name=ctx.author, icon_url=ctx.author.avatar_url) embed.set_image(url="attachment://five_guys_one_girl.png") await ctx.send(embed=embed, file=file)