diff options
author | 2021-08-23 21:38:14 +0100 | |
---|---|---|
committer | 2021-08-23 21:54:12 +0100 | |
commit | e58eb7c348fb470d2c9731c87f7365b0e025146f (patch) | |
tree | d9e35411366b69226726d9adb5e1ef381e0bf434 | |
parent | Initial commit (add coinflip command in coinflip.py) (diff) |
Add missing docstrings
-rw-r--r-- | bot/exts/evergreen/coinflip.py | 3 |
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" |