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"
|
||||
)
|
||||
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 = []
|
||||
await ctx.defer()
|
||||
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 ctx.send(content="")
|
||||
else:
|
||||
author = author.strip().title()
|
||||
if author in quotes:
|
||||
|
||||
Reference in New Issue
Block a user