aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/exts/evergreen/coinflip.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bot/exts/evergreen/coinflip.py b/bot/exts/evergreen/coinflip.py
index dc9a960b..eba4bb45 100644
--- a/bot/exts/evergreen/coinflip.py
+++ b/bot/exts/evergreen/coinflip.py
@@ -11,10 +11,13 @@ LEMON_PENSIVE = "<:lemon_pensive:754441880246419486>"
class CoinSide(commands.Converter):
+ """Class used to convert the `side` parameter of coinflip command."""
+
HEADS: Tuple[str] = ("h", "head", "heads")
TAILS: Tuple[str] = ("t", "tail", "tails")
async def convert(self, ctx: commands.Context, side: str) -> str:
+ """Converts the provided `side` into the corresponding string."""
if side in CoinSide.HEADS:
return "heads"