lewd works again, and properly checks for a nsfw channel. fixes #18
This commit is contained in:
parent
0c591bdac9
commit
e325fb8b6f
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')
|
@bot.command(name='redpanda')
|
||||||
async def redpanda(ctx):
|
async def redpanda(ctx):
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user