From ed26c0f552d5ac61a447ec7e13d3e379f58f69f7 Mon Sep 17 00:00:00 2001 From: Aceofgods <88174711+Aceofgods@users.noreply.github.com> Date: Wed, 21 Jun 2023 03:09:42 -0400 Subject: [PATCH] Update meme.py with .lick meme command (#53) * Update meme.py with .lick meme command Never done this before. * Update meme.py with lick meme v2 I used a web-based version of Black to fix the parsing error but couldn't get it to register the commands while indented? * Add black formatting * Apply suggestions from code review Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com> --------- Co-authored-by: TSR Berry <20988865+TSRBerry@users.noreply.github.com> --- robocop_ng/cogs/meme.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/robocop_ng/cogs/meme.py b/robocop_ng/cogs/meme.py index 342468d..3e4bbfd 100644 --- a/robocop_ng/cogs/meme.py +++ b/robocop_ng/cogs/meme.py @@ -56,6 +56,19 @@ class Meme(Cog): f"({fahrenheit}°F, {kelvin}K)." ) + @commands.check(check_if_staff_or_ot) + @commands.command(hidden=True) + async def lick(self, ctx, user: Optional[discord.Member]): + """licks a user :?""" + if user is None and ctx.message.reference is None: + await ctx.send(f"{ctx.author.mention} licks their lips! 👅") + else: + if user is None: + user = ( + await ctx.channel.fetch_message(ctx.message.reference.message_id) + ).author + await ctx.send(f"{user.mention} has been licked! 👅") + @commands.check(check_if_staff_or_ot) @commands.command(hidden=True, name="chill", aliases=["cold"]) async def chill_member(self, ctx, user: Optional[discord.Member]):