Fix some small issues with some slash commands

This commit is contained in:
2021-10-05 19:11:57 +02:00
parent 947e1fce36
commit a6bc6ab8ab

5
bot.py
View File

@@ -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: