This commit is contained in:
Amazed 2020-08-31 23:59:10 +02:00
parent e99409c089
commit d8489cf46a

View File

@ -99,6 +99,8 @@ class WynncraftCog(commands.Cog):
await self._log("Loop id %s" % guild_id)
try:
guild_name = await self.config.guild(guild).guild_name()
if not guild_name:
continue
r = requests.get("https://api.wynncraft.com/public_api.php?action=guildStats&command=%s" % guild_name).json()
for member in r["members"]:
member_name = member["name"]