mirror of
https://github.com/neoarz/Syntrel.git
synced 2025-12-25 11:40:12 +01:00
fix(minesweeper): dont time out game after user has won/lost
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user