1
0
Fork 0
mirror of synced 2024-06-23 08:40:41 +12:00

Renamed battles variable, as it caused a conflict

This commit is contained in:
Phxntxm 2016-08-21 15:12:13 -05:00
parent 38f4c578db
commit 09ad1a8b57

View file

@ -26,9 +26,9 @@ class Owner:
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()])
battles = 0
count_battles = 0
for battles in self.bot.get_cog('Interaction').battles:
battles += len(battles)
count_battles += len(battles)
fmt = ""
if servers_playing_music:
fmt += "Playing songs in {} different servers\n".format(servers_playing_music)
@ -36,8 +36,8 @@ class Owner:
fmt += "{} different hangman games running\n".format(hm_games)
if ttt_games:
fmt += "{} different TicTacToe games running\n".format(ttt_games)
if battles:
fmt += "{} different battles going on\n".format(battles)
if count_battles:
fmt += "{} different battles going on\n".format(count_battles)
if not fmt:
fmt = "Nothing currently running!"