Fix some small issues with some slash commands
This commit is contained in:
5
bot.py
5
bot.py
@@ -425,7 +425,7 @@ async def list_messages_slash(ctx: SlashContext, channel: Optional[discord.abc.G
|
|||||||
description="Toss a pipelin to your favourite teacher and see whether it's schnel or slo"
|
description="Toss a pipelin to your favourite teacher and see whether it's schnel or slo"
|
||||||
)
|
)
|
||||||
async def flip_pipelin_slash(ctx: SlashContext):
|
async def flip_pipelin_slash(ctx: SlashContext):
|
||||||
await ctx.channel.send("Pipelin " + random.choice(['schnel', 'slo']))
|
await ctx.send("Pipelin " + random.choice(['schnel', 'slo']))
|
||||||
|
|
||||||
|
|
||||||
# ____ ____ ___ _ _ ____ ____
|
# ____ ____ ___ _ _ ____ ____
|
||||||
@@ -826,8 +826,9 @@ async def quote_list_slash(ctx: SlashContext, author: Optional[str] = None):
|
|||||||
coroutines = []
|
coroutines = []
|
||||||
await ctx.defer()
|
await ctx.defer()
|
||||||
for author, author_quotes in quotes.items():
|
for author, author_quotes in quotes.items():
|
||||||
coroutines.append(ctx.send(embed=create_list_embed(author, author_quotes)))
|
coroutines.append(ctx.channel.send(embed=create_list_embed(author, author_quotes)))
|
||||||
await asyncio.gather(*coroutines)
|
await asyncio.gather(*coroutines)
|
||||||
|
await ctx.send(content="")
|
||||||
else:
|
else:
|
||||||
author = author.strip().title()
|
author = author.strip().title()
|
||||||
if author in quotes:
|
if author in quotes:
|
||||||
|
|||||||
Reference in New Issue
Block a user