diff options
author | 2019-10-24 16:51:17 -0400 | |
---|---|---|
committer | 2019-10-24 16:51:17 -0400 | |
commit | 259e335e8c8e862883c8515d55a45dae3146f595 (patch) | |
tree | 5af4c6d840c68389c583261d479a573cd6da4db3 | |
parent | Merge branch 'master' into monster_bio (diff) |
Readd cog init & rename *.py file
-rw-r--r-- | bot/seasons/halloween/monsterbio.py (renamed from bot/seasons/halloween/monster.py) | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bot/seasons/halloween/monster.py b/bot/seasons/halloween/monsterbio.py index 5a735b69..d84498a8 100644 --- a/bot/seasons/halloween/monster.py +++ b/bot/seasons/halloween/monsterbio.py @@ -17,6 +17,9 @@ with open(Path("bot/resources/halloween/monster.json"), "r", encoding="utf8") as class MonsterBio(commands.Cog): """A cog that generates a spooky monster biography.""" + def __init__(self, bot: commands.Bot): + self.bot = bot + def generate_name(self, length: int) -> str: """Generates a name (for either monster species or monster name).""" return "".join([random.choice(TEXT_OPTIONS["monster_type"][i]) for i in range(length)]) |