changed constant name to a function returning name
This commit is contained in:
parent
13064a3af0
commit
54f8eaf4c2
|
@ -3,7 +3,9 @@ from abc import ABC
|
||||||
|
|
||||||
class Game(ABC):
|
class Game(ABC):
|
||||||
|
|
||||||
name = "Game"
|
@classmethod
|
||||||
|
def name(cls):
|
||||||
|
return "Game"
|
||||||
|
|
||||||
def __init__(self, bot, channel):
|
def __init__(self, bot, channel):
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
|
|
|
@ -8,7 +8,9 @@ from .players import Player, No_player
|
||||||
|
|
||||||
class Werewolf_game:
|
class Werewolf_game:
|
||||||
|
|
||||||
name = "One Night Ultimate Werewolf"
|
@classmethod
|
||||||
|
def name(cls):
|
||||||
|
return "One Night Ultimate Werewolf"
|
||||||
|
|
||||||
def __init__(self, bot, channel):
|
def __init__(self, bot, channel):
|
||||||
self.running = False
|
self.running = False
|
||||||
|
|
Loading…
Reference in New Issue