From bf535f3cbc88b461a4ca6101d7908e4434904e85 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Sun, 21 Aug 2016 15:15:41 -0500 Subject: [PATCH] Corrected what was being searched in running --- cogs/owner.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cogs/owner.py b/cogs/owner.py index 0972b2c..74fc991 100644 --- a/cogs/owner.py +++ b/cogs/owner.py @@ -22,12 +22,14 @@ class Owner: @commands.command() @commands.check(checks.is_owner) async def running(self): + """This command detects all things currently running + This includes music played, tictactoe games, hangman games, and battles""" servers_playing_music = len([server_id for server_id, state in self.bot.get_cog('Music').voice_states.items() if state.is_playing()]) hm_games = len([server_id for server_id, game in self.bot.get_cog('Hangman').games.items()]) ttt_games = len([server_id for server_id, game in self.bot.get_cog('TicTacToe').boards.items()]) count_battles = 0 - for battles in self.bot.get_cog('Interaction').battles: + for battles in self.bot.get_cog('Interaction').battles.values(): count_battles += len(battles) fmt = "" if servers_playing_music: