diff options
author | 2019-08-14 16:31:03 +0200 | |
---|---|---|
committer | 2019-08-14 16:31:03 +0200 | |
commit | 55a82ee2ae326f1d3c666a97768592dc75da7a12 (patch) | |
tree | fba6aa4d6dc0c0096dd4aa6f46b0f9a28eeb57d0 | |
parent | added header to message. so the board looks correct on compact mode. (diff) |
fixed coordinate bug.
-rw-r--r-- | bot/seasons/evergreen/minesweeper.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bot/seasons/evergreen/minesweeper.py b/bot/seasons/evergreen/minesweeper.py index 9333bb68..6f124c63 100644 --- a/bot/seasons/evergreen/minesweeper.py +++ b/bot/seasons/evergreen/minesweeper.py @@ -36,7 +36,11 @@ class CoordinateConverter(commands.Converter): if not 2 <= len(coordinate) <= 3: raise commands.BadArgument('Invalid co-ordinate provided') - digit, letter = sorted(coordinate.lower()) + if len(coordinate) == 3: + digit = "10" + letter = sorted(coordinate.lower())[-1] + else: + digit, letter = sorted(coordinate.lower()) if not digit.isdigit(): raise commands.BadArgument |