lewd works again, and properly checks for a nsfw channel. fixes #18
This commit is contained in:
parent
5934b0d00f
commit
be3df59845
13
app/bot.py
13
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):
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user