async def charcoal(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.charcoal(), url)
     await ctx.send(
         file=discord.File(fp=img.image, filename=f"pixel.{img.format}"))
Exemple #2
0
    async def charcoal(self, ctx, member: Optional[Union[discord.Member,
                                                         MemberID]]):
        """Get your pfp beautiful charcoal paint"""
        member = member or ctx.author

        url = member.display_avatar.url
        img = await self.dagpi.image_process(ImageFeatures.charcoal(), url)
        e2file = discord.File(fp=img.image, filename=f"charcoal.{img.format}")
        e = Embed(title="There you go your lovely charcoal paintaing")
        e.set_image(url=f"attachment://charcoal.{img.format}")
        await ctx.send(embed=e, file=e2file)
Exemple #3
0
 async def dag_charcoal(self, ctx: Context, *, item=None):
     """
     Adds a charcoal effect you your image.
     """
     meth = await self.do_dagpi(ctx, ImageFeatures.charcoal(), item)
     await self.dag_embed(ctx, meth, ctx.command.name)