From 3b50785c5be698912e218a70d0438e66523ca147 Mon Sep 17 00:00:00 2001 From: bobloy Date: Mon, 11 Jan 2021 13:40:54 -0500 Subject: [PATCH] Docs update, better delete --- werewolf/werewolf.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/werewolf/werewolf.py b/werewolf/werewolf.py index d6be0b3..2074c48 100644 --- a/werewolf/werewolf.py +++ b/werewolf/werewolf.py @@ -50,15 +50,17 @@ class Werewolf(Cog): def cog_unload(self): log.debug("Unload called") - for game in self.games.values(): - del game + for key in self.games.keys(): + del self.games[key] @commands.command() async def buildgame(self, ctx: commands.Context): """ Create game codes to run custom games. - Pick the roles or randomized roles you want to include in a game + Pick the roles or randomized roles you want to include in a game. + + Note: The same role can be picked more than once. """ gb = GameBuilder() code = await gb.build_game(ctx) @@ -84,9 +86,6 @@ class Werewolf(Cog): Lists current guild settings """ valid, role, category, channel, log_channel = await self._get_settings(ctx) - # if not valid: - # await ctx.send("Failed to get settings") - # return None embed = discord.Embed( title="Current Guild Settings",