diff --git a/other_ext/stats_presence.py b/other_ext/stats_presence.py index dc7c2b3..a02047c 100644 --- a/other_ext/stats_presence.py +++ b/other_ext/stats_presence.py @@ -21,11 +21,11 @@ class Extension: print("Stats not be loaded") return try: - server = self.core.stats['servers'].values()[self.show_stats_prev] + server = list(self.core.stats['servers'].values())[self.show_stats_prev] self.show_stats_prev += 1 except: self.show_stats_prev = 0 - server = self.core.stats['servers'].values()[self.show_stats_prev] + server = list(self.core.stats['servers'].values())[self.show_stats_prev] addr = server['address'].split(":") act = discord.Streaming(name = f"{server['name']} - {server['player_count']}", url=f"https://{addr[0]}/connect/{addr[1]}")