From e325fb8b6f875c92a1dba45513e1f0421f855af9 Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Tue, 1 Sep 2020 19:40:53 -0700 Subject: [PATCH] lewd works again, and properly checks for a nsfw channel. fixes #18 --- app/bot.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/bot.py b/app/bot.py index 66c8ec01..5876626a 100755 --- a/app/bot.py +++ b/app/bot.py @@ -178,6 +178,19 @@ async def meme(ctx): ) ) +@bot.command(name='lewd') +async def lewd(ctx): + if not ctx.message.channel.is_nsfw(): + await ctx.send('You can only use this command in NSFW channels') + return + import lewds + await ctx.send( + embed=generate_embed( + embed_url=lewds.get_lewd(), + embed_title="{} is being lewd".format(ctx.message.author.name) + ) + ) + @bot.command(name='redpanda') async def redpanda(ctx):