Exemple #1
0
 async def asnippet(self, ctx, *, name: str):
     name = name.lower()
     async with self.bot.pool.acquire() as conn:
         res = await conn.fetchrow(
             "SELECT content FROM snippet WHERE name=$1 AND guild=$2", name,
             ctx.guild.id)
     if not res:
         await ctx.send(
             embed=discord.Embed(description="The snippet was not found.",
                                 colour=self.bot.error_colour))
         return
     modmail = ModMailEvents(self.bot)
     await modmail.send_mail_mod(ctx.message, ctx.prefix, True, res[0],
                                 True)
Exemple #2
0
 async def areply(self, ctx, *, message):
     modmail = ModMailEvents(self.bot)
     await modmail.send_mail_mod(ctx.message, ctx.prefix, True, message)