2022-11-11 04:41:42 +00:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
# Copyright 2022 - c0de <c0de@c0de.dev>
|
|
|
|
# Licensed under the MIT License (https://opensource.org/licenses/MIT)
|
|
|
|
|
|
|
|
# pylint: disable=no-member
|
|
|
|
|
|
|
|
"""
|
|
|
|
A Context Manager / State Machine that keeps track of
|
|
|
|
a single game instance (there should only be one) in a
|
|
|
|
Discord channel
|
|
|
|
"""
|
|
|
|
|
2022-11-11 04:43:40 +00:00
|
|
|
from game.new_game import NewGameManager
|
|
|
|
from game.end_game import EndGameManager
|
|
|
|
from game.guess import GuessManager
|
|
|
|
from game.points import PointsManager
|
2022-12-10 05:20:20 +00:00
|
|
|
from game.reset import ResetManager
|
2022-11-11 04:43:40 +00:00
|
|
|
from game.help import HelpManager
|
|
|
|
|
2022-11-11 04:44:24 +00:00
|
|
|
|
|
|
|
class GameManager(
|
2022-12-10 05:20:20 +00:00
|
|
|
NewGameManager, EndGameManager, GuessManager, PointsManager, ResetManager, HelpManager
|
2022-11-11 04:44:24 +00:00
|
|
|
):
|
2022-11-11 04:43:40 +00:00
|
|
|
"""
|
|
|
|
Represents what this bot is able to do on a channel (or DMs)
|
|
|
|
"""
|