fix(minesweeper): dont time out game after user has won/lost

This commit is contained in:
neoarz
2025-10-10 10:20:38 -04:00
parent a436388db4
commit ed53eb375d

View File

@@ -137,6 +137,7 @@ class MsView(discord.ui.View):
await asyncio.sleep(1) await asyncio.sleep(1)
else: else:
raise raise
self.stop()
def GetBoardRow(self, pos): def GetBoardRow(self, pos):
if pos in [0, 1, 2, 3, 4]: if pos in [0, 1, 2, 3, 4]:
@@ -206,6 +207,7 @@ class MsView(discord.ui.View):
await asyncio.sleep(1) await asyncio.sleep(1)
else: else:
raise raise
self.stop()
def minesweeper_command(): def minesweeper_command():
@commands.hybrid_command( @commands.hybrid_command(