Browse Source

я дебил 2

huy
gsd 2 years ago
parent
commit
956d31ad73
  1. 6
      other_ext/stats_presence.py

6
other_ext/stats_presence.py

@ -17,15 +17,15 @@ class Extension:
async def updater(self):
try:
if not self.core.stats['servers'].items():
if not self.core.stats['servers'].values():
print("Stats not be loaded")
return
try:
server = self.core.stats['servers'].items()[self.show_stats_prev]
server = 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'].items()[self.show_stats_prev]
server = 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]}")

Loading…
Cancel
Save