forked from c0de/BaseballBot
Init before registering command
This commit is contained in:
parent
460a3e08d2
commit
5f70ffd69b
@ -15,8 +15,8 @@ class EndGameManager(BaseGameManager):
|
||||
"""Commands that run at the end of a game"""
|
||||
|
||||
def __init__(self):
|
||||
self.commands.append(("resolve", self.stop))
|
||||
super().__init__()
|
||||
self.commands.append(("resolve", self.stop))
|
||||
|
||||
def __stop_args__(self):
|
||||
pieces = self.message.content.split()
|
||||
|
@ -14,8 +14,8 @@ class GuessManager(BaseGameManager):
|
||||
"""Commands that run when a player makes a guess"""
|
||||
|
||||
def __init__(self):
|
||||
self.commands.append(("guess", self.guess))
|
||||
super().__init__()
|
||||
self.commands.append(("guess", self.guess))
|
||||
|
||||
async def guess(self):
|
||||
"""
|
||||
|
@ -11,8 +11,8 @@ class HelpManager(BaseGameManager):
|
||||
"""Commands that run when a player asks for help"""
|
||||
|
||||
def __init__(self):
|
||||
self.commands.append(("help", self.help))
|
||||
super().__init__()
|
||||
self.commands.append(("help", self.help))
|
||||
|
||||
async def help(self):
|
||||
"""help command - Sends a DM to the requesting user with available commands"""
|
||||
|
@ -14,8 +14,8 @@ class NewGameManager(BaseGameManager):
|
||||
"""Commands that run at the start of a new game"""
|
||||
|
||||
def __init__(self):
|
||||
self.commands.append(("braveball", self.start))
|
||||
super().__init__()
|
||||
self.commands.append(("braveball", self.start))
|
||||
|
||||
async def start(self):
|
||||
"""
|
||||
|
@ -12,8 +12,8 @@ class PointsManager(BaseGameManager):
|
||||
"""Commands that run when a player makes a guess"""
|
||||
|
||||
def __init__(self):
|
||||
self.commands.append(("points", self.points))
|
||||
super().__init__()
|
||||
self.commands.append(("points", self.points))
|
||||
|
||||
async def points(self):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user