changing lewd to be a slash command

This commit is contained in:
Luke Robles 2023-01-12 11:50:19 -08:00
parent a12a67985e
commit 3a9cc068dd

View File

@ -208,55 +208,10 @@ class Cheeky(commands.Cog):
await ctx.respond(file=discord.File("/tmp/tweet.jpg"))
@commands.slash_command(
guild_ids=None, name="sus", description="Returns a sussy crewmate"
guild_ids=None, name="lewd", description="Posts nsfw content"
)
async def sus(self, ctx: commands.Context):
if random.randint(0, 200) == 0:
await ctx.respond(
"""
```
```"""
)
else:
await ctx.respond(
"""
```
```
"""
)
@commands.command(name="lewd")
async def lewd(self, ctx: commands.Context):
if not ctx.message.channel.is_nsfw():
if not ctx.channel.is_nsfw():
await ctx.send("You can only use this command in NSFW channels")
return
import lewds
@ -267,10 +222,10 @@ class Cheeky(commands.Cog):
# embed_title="{} is being lewd".format(ctx.message.author.name),
# )
# )
await ctx.reply(
await ctx.defer()
await ctx.send_followup(
embed=core_utils.generate_embed(
embed_title="{} is being lewd".format(ctx.message.author.name),
embed_title="{} is being lewd".format(ctx.author.name),
embed_url=core_utils.waifu_pics(
endpoint=random.choice(["waifu", "neko", "blowjob"]), nsfw=True
),