Add extra whitespace

This commit is contained in:
c0de 2022-11-10 22:44:24 -06:00
parent b067a6ca07
commit 51092e52a2
6 changed files with 11 additions and 3 deletions

View File

@ -10,6 +10,7 @@ from database.models import GameModel as Game, GuessModel as Guess
from game.manager import BaseGameManager from game.manager import BaseGameManager
from game.process_guess import ProcessGuess from game.process_guess import ProcessGuess
class EndGameManager(BaseGameManager): class EndGameManager(BaseGameManager):
"""Commands that run at the end of a game""" """Commands that run at the end of a game"""

View File

@ -9,6 +9,7 @@ import uuid
from database.models import PlayerModel as Player, GuessModel as Guess from database.models import PlayerModel as Player, GuessModel as Guess
from game.manager import BaseGameManager from game.manager import BaseGameManager
class GuessManager(BaseGameManager): class GuessManager(BaseGameManager):
"""Commands that run when a player makes a guess""" """Commands that run when a player makes a guess"""
@ -42,8 +43,7 @@ class GuessManager(BaseGameManager):
) )
Guess.update({"guess": value}).where( Guess.update({"guess": value}).where(
(Guess.game == self.game.game_id) (Guess.game == self.game.game_id) & (Guess.player == self.message.author.id)
& (Guess.player == self.message.author.id)
).execute() ).execute()
if created: if created:

View File

@ -6,6 +6,7 @@
from game.manager import BaseGameManager from game.manager import BaseGameManager
class HelpManager(BaseGameManager): class HelpManager(BaseGameManager):
"""Commands that run when a player asks for help""" """Commands that run when a player asks for help"""

View File

@ -18,6 +18,7 @@ from game.guess import GuessManager
from game.points import PointsManager from game.points import PointsManager
from game.help import HelpManager from game.help import HelpManager
class BaseGameManager: class BaseGameManager:
"""Base Game Manager for each Game Manager class to inherit""" """Base Game Manager for each Game Manager class to inherit"""
@ -51,7 +52,10 @@ class BaseGameManager:
""" """
database.close() database.close()
class GameManager(NewGameManager, EndGameManager, GuessManager, PointsManager, HelpManager):
class GameManager(
NewGameManager, EndGameManager, GuessManager, PointsManager, HelpManager
):
""" """
Represents what this bot is able to do on a channel (or DMs) Represents what this bot is able to do on a channel (or DMs)
""" """

View File

@ -9,6 +9,7 @@ import uuid
from database.models import GameModel as Game from database.models import GameModel as Game
from game.manager import BaseGameManager from game.manager import BaseGameManager
class NewGameManager(BaseGameManager): class NewGameManager(BaseGameManager):
"""Commands that run at the start of a new game""" """Commands that run at the start of a new game"""

View File

@ -7,6 +7,7 @@
from database.models import PlayerModel as Player from database.models import PlayerModel as Player
from game.manager import BaseGameManager from game.manager import BaseGameManager
class PointsManager(BaseGameManager): class PointsManager(BaseGameManager):
"""Commands that run when a player makes a guess""" """Commands that run when a player makes a guess"""