def pat(self, ctx, *, user: discord.Member=None):
"""Pat users."""
author = ctx.message.author
if not user:
await self.bot.say("{} is trying to pat the air ... and failed.".format(author.name))
else:
patdata = discord.Embed(description="**{}** got a pat from **{}**".format(user.name, author.name), color=discord.Color(0xffb6c1))
patdata.set_image(url=rnd(self.patimg))
# this line is for testing purpose
# patdata.set_image(url="https://i.imgur.com/YTGnx49.gif")
await self.bot.say(embed=patdata)
评论列表
文章目录