|
|
@ -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]}") |
|
|
|