diff options
Diffstat (limited to 'bot')
-rw-r--r-- | bot/seasons/evergreen/minesweeper.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bot/seasons/evergreen/minesweeper.py b/bot/seasons/evergreen/minesweeper.py index f09230a9..c99cefba 100644 --- a/bot/seasons/evergreen/minesweeper.py +++ b/bot/seasons/evergreen/minesweeper.py @@ -36,7 +36,13 @@ class CoordinateConverter(commands.Converter): if not 2 <= len(coordinate) <= 3: raise commands.BadArgument('Invalid co-ordinate provided') - digit, letter = sorted(coordinate.lower()) + coordinate = coordinate.lower() + if coordinate[0].isalpha(): + digit = coordinate[1:] + letter = coordinate[0] + else: + digit = coordinate[:-1] + letter = coordinate[-1] if not digit.isdigit(): raise commands.BadArgument |