From 7cf006cd4ff4cc3be7ba28cdccb941ab6b6514d3 Mon Sep 17 00:00:00 2001 From: c0de Date: Thu, 10 Nov 2022 21:58:55 -0600 Subject: [PATCH] Add help command --- GhostBallBot/game/game.py | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/GhostBallBot/game/game.py b/GhostBallBot/game/game.py index 80e3cb7..772f51f 100644 --- a/GhostBallBot/game/game.py +++ b/GhostBallBot/game/game.py @@ -255,9 +255,19 @@ class GameManager: return await self.message.channel.send(message) async def help(self): - """help command""" - # TODO: Add help message - help_message = "help" + """help command - Sends a DM to the requesting user with available commands""" + + help_message = ( + "Braveball commands\n" + + "!braveball - Start new game\n" + + "!guess - While a game is running, add a guess" + + " (or update an existing one) from 1-1000\n" + + "!resolve - 1-1000 to resolve the game\n" + + " You can also add a batter's guess with: " + + "!resolve \n" + + "!points - Shows a table of the most recent players, and their scores\n" + + "!help - Shows this message" + ) recipient = await self.discord.fetch_user(self.message.author.id) await recipient.send(help_message)