summaryrefslogtreecommitdiff
path: root/bot.py
diff options
context:
space:
mode:
authorNatrixAeria <upezu@student.kit.edu>2020-09-28 01:37:55 +0200
committerNatrixAeria <upezu@student.kit.edu>2020-09-28 01:37:55 +0200
commit778b54f50f81151cbd1bd2e62f5c6d69c4ca0cf0 (patch)
tree1ba06eb7ed0fb748e473c22b07934ee22371188a /bot.py
parentee22753e9e82879363a3c9540166f51d4aa29988 (diff)
Update help message
Diffstat (limited to 'bot.py')
-rw-r--r--bot.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/bot.py b/bot.py
index d860397..a7e042a 100644
--- a/bot.py
+++ b/bot.py
@@ -10,7 +10,11 @@ class Client(CommandClient):
@Command.names('help', 'hepl', 'h', '?')
@Command.description('display this help message')
async def help(self, ctx):
- await ctx.answer(config.HELP_TEXT)
+ command_doc = '\n'.join(
+ f' * {config.COMMAND_PREFIX.strip()} {c.names[0]:15} - {c.description}'
+ for c in self.get_commands())
+ await ctx.answer(f'''```
+{config.HELP_TEXT}\nThese are all available commands:\n{command_doc}```''')
@Command.names('init', 'create', 'inti', 'craete', 'cretae', 'c', 'i', '+')
@Command.description('create a new lobby')