diff options
author | 2021-08-15 23:57:23 +0300 | |
---|---|---|
committer | 2021-08-15 23:57:23 +0300 | |
commit | 73187a35c7349c661e50f4a429ae30560ee92ddd (patch) | |
tree | d6c4c6f5d4da7cb7cec8115e1eb84dc528885b7e | |
parent | Add team name to audit log reason (diff) |
Add `cj end` timeout message, improve style
Co-authored-by: Bluenix <[email protected]>
-rw-r--r-- | bot/exts/events/code_jams/_cog.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/exts/events/code_jams/_cog.py b/bot/exts/events/code_jams/_cog.py index 64f886f0a..e385f6441 100644 --- a/bot/exts/events/code_jams/_cog.py +++ b/bot/exts/events/code_jams/_cog.py @@ -109,6 +109,7 @@ class CodeJams(commands.Cog): except asyncio.TimeoutError: await message.clear_reaction(DELETION_REACTION) + await ctx.send("Command timed out.", reference=message) return else: @@ -131,7 +132,7 @@ class CodeJams(commands.Cog): def format_category_info(category: discord.CategoryChannel, channels: list[discord.abc.GuildChannel]) -> str: """Displays the category and the channels within it in a readable format.""" - return f"{channel_repr(category)}:" + "".join(f"\n - {channel_repr(channel)}" for channel in channels) + return f"{channel_repr(category)}:\n" + "\n".join(" - " + channel_repr(channel) for channel in channels) deletion_details = "\n\n".join( format_category_info(category, channels) for category, channels in categories.items() |