From 54f8eaf4c2b42901d6484c4455ece9f13a1e708e Mon Sep 17 00:00:00 2001 From: bibin Date: Wed, 15 Jul 2020 16:48:00 +0200 Subject: [PATCH] changed constant name to a function returning name --- src/package/games/game.py | 4 +++- src/package/games/werewolf/game.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) 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