def pat(self, context, member: discord.Member):
"""Pat your senpai/waifu!"""
author = context.message.author.mention
mention = member.mention
pat = "**{0} got patted by {1}!**"
choices = ['http://i.imgur.com/10VrpFZ.gif', 'http://i.imgur.com/x0u35IU.gif', 'http://i.imgur.com/0gTbTNR.gif', 'http://i.imgur.com/hlLCiAt.gif', 'http://i.imgur.com/sAANBDj.gif']
image = random.choice(choices)
embed = discord.Embed(description=pat.format(mention, author), colour=discord.Colour.blue())
embed.set_image(url=image)
await self.bot.say(embed=embed)
评论列表
文章目录