Init before registering command

This commit is contained in:
c0de 2022-11-11 12:52:54 -06:00
parent 460a3e08d2
commit 5f70ffd69b
5 changed files with 5 additions and 5 deletions

View File

@ -15,8 +15,8 @@ class EndGameManager(BaseGameManager):
"""Commands that run at the end of a game""" """Commands that run at the end of a game"""
def __init__(self): def __init__(self):
self.commands.append(("resolve", self.stop))
super().__init__() super().__init__()
self.commands.append(("resolve", self.stop))
def __stop_args__(self): def __stop_args__(self):
pieces = self.message.content.split() pieces = self.message.content.split()

View File

@ -14,8 +14,8 @@ class GuessManager(BaseGameManager):
"""Commands that run when a player makes a guess""" """Commands that run when a player makes a guess"""
def __init__(self): def __init__(self):
self.commands.append(("guess", self.guess))
super().__init__() super().__init__()
self.commands.append(("guess", self.guess))
async def guess(self): async def guess(self):
""" """

View File

@ -11,8 +11,8 @@ class HelpManager(BaseGameManager):
"""Commands that run when a player asks for help""" """Commands that run when a player asks for help"""
def __init__(self): def __init__(self):
self.commands.append(("help", self.help))
super().__init__() super().__init__()
self.commands.append(("help", self.help))
async def help(self): async def help(self):
"""help command - Sends a DM to the requesting user with available commands""" """help command - Sends a DM to the requesting user with available commands"""

View File

@ -14,8 +14,8 @@ class NewGameManager(BaseGameManager):
"""Commands that run at the start of a new game""" """Commands that run at the start of a new game"""
def __init__(self): def __init__(self):
self.commands.append(("braveball", self.start))
super().__init__() super().__init__()
self.commands.append(("braveball", self.start))
async def start(self): async def start(self):
""" """

View File

@ -12,8 +12,8 @@ class PointsManager(BaseGameManager):
"""Commands that run when a player makes a guess""" """Commands that run when a player makes a guess"""
def __init__(self): def __init__(self):
self.commands.append(("points", self.points))
super().__init__() super().__init__()
self.commands.append(("points", self.points))
async def points(self): async def points(self):
""" """