diff --git a/src/package/games/game.py b/src/package/games/game.py index 69d7c84..7a4ccf6 100644 --- a/src/package/games/game.py +++ b/src/package/games/game.py @@ -3,7 +3,9 @@ from abc import ABC class Game(ABC): - name = "Game" + @classmethod + def name(cls): + return "Game" def __init__(self, bot, channel): self.bot = bot diff --git a/src/package/games/werewolf/game.py b/src/package/games/werewolf/game.py index 4526027..4d1b9ee 100644 --- a/src/package/games/werewolf/game.py +++ b/src/package/games/werewolf/game.py @@ -8,7 +8,9 @@ from .players import Player, No_player class Werewolf_game: - name = "One Night Ultimate Werewolf" + @classmethod + def name(cls): + return "One Night Ultimate Werewolf" def __init__(self, bot, channel): self.running = False