forked from c0de/BaseballBot
clear total points
This commit is contained in:
parent
febdfaf355
commit
292db8133d
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
# pylint: disable=missing-module-docstring,too-few-public-methods
|
# pylint: disable=missing-module-docstring,too-few-public-methods
|
||||||
|
|
||||||
from database.models import GuessModel as Guess
|
from database.models import PlayerModel as Player
|
||||||
from game.base import BaseGameManager
|
from game.base import BaseGameManager
|
||||||
|
|
||||||
|
|
||||||
@ -16,7 +16,7 @@ class ResetManager(BaseGameManager):
|
|||||||
self.commands.append(("reset", self.reset))
|
self.commands.append(("reset", self.reset))
|
||||||
|
|
||||||
async def reset(self):
|
async def reset(self):
|
||||||
"""Reset command purges all guesses"""
|
"""Reset command purges all players (removes total points)"""
|
||||||
Guess.delete().where(True).execute()
|
Player.delete().where(True).execute()
|
||||||
|
|
||||||
return await self.message.channel.send("ok")
|
return await self.message.channel.send("ok")
|
||||||
|
Loading…
Reference in New Issue
Block a user