changed constant name to a function returning name

This commit is contained in:
Bibin Muttappillil 2020-07-15 16:48:00 +02:00
parent 13064a3af0
commit 54f8eaf4c2
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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