Beispiel #1
0
 async def dag_thought_image(self, ctx: Context, text, *, item: GetAvatar):
     """
     Overlays your image on a captcha grid.
     """
     async with ctx.channel.typing():
         image = await self.bot.dagpi.image_process(
             ImageFeatures.thought_image(), item, text=text)
     await self.dag_embed(ctx, image, ctx.command.name)
 async def shatter(self, ctx):
     url = str(
         ctx.message.author.avatar_url_as(format="png",
                                          static_format="png",
                                          size=1024))
     img = await self.bot.dagp.image_process(ImageFeatures.thought_image(),
                                             url,
                                             text='HOLA')
     await ctx.send(
         file=discord.File(fp=img.image, filename=f"shatter.{img.format}"))