lewd works again, and properly checks for a nsfw channel. fixes #18

This commit is contained in:
Luke Robles 2020-09-01 19:40:53 -07:00
parent 5934b0d00f
commit be3df59845

View File

@ -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):