From 78e34dff6329c658d0a9ca6716a78b6135e568b1 Mon Sep 17 00:00:00 2001 From: 0x5c Date: Sat, 13 Mar 2021 18:16:58 -0500 Subject: [PATCH] Added list of available prexifes to ?help - Only shows when more then one is available. Fixes #353 --- CHANGELOG.md | 1 + exts/base.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index df66b78..ac5da15 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased] ### Added - MUF and foF2 maps from [prop.kc2g.com](https://prop.kc2g.com/). +- The list of available prefixes to `?help` when there is more than one. ### Changed - New colour theme for `?greyline`. - Moved great circle distance and bearing calculation from `?ungrid` to `?griddistance`. diff --git a/exts/base.py b/exts/base.py index 9f58854..3ac48a6 100644 --- a/exts/base.py +++ b/exts/base.py @@ -61,6 +61,9 @@ class QrmHelpCommand(commands.HelpCommand): embed.title = "qrm Help" embed.description = (f"For command-specific help and usage, use `{self.context.prefix}help [command name]`." " Many commands have shorter aliases.") + if isinstance(self.context.bot.command_prefix, list): + embed.description += (" All of the following prefixes work with the bot: `" + + "`, `".join(self.context.bot.command_prefix) + "`.") mapping = await mapping for cat, cmds in mapping.items():