[refactor] Processing guesses moved to own class

This commit is contained in:
2022-10-30 22:24:51 -05:00
parent f6860bb43f
commit e39a19da55
5 changed files with 148 additions and 68 deletions

View File

@@ -18,7 +18,7 @@ import discord
# Import game functions
sys.path.append("..")
import game
from game.game import GameManager
class GhostBallClient(discord.Client):
@@ -31,7 +31,7 @@ class GhostBallClient(discord.Client):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
with game.GameManager() as self.game:
with GameManager() as self.game:
self.game.discord = self
async def on_ready(self):