From 1db2cf35f6bc15bd491160324d7e8f70fc3c990a Mon Sep 17 00:00:00 2001 From: Hipstercat Date: Tue, 1 Sep 2020 00:18:56 +0200 Subject: [PATCH] try fix 4? (2) --- cogs/wynncraft/wynncraftcog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/wynncraft/wynncraftcog.py b/cogs/wynncraft/wynncraftcog.py index fdf0d94..0d643af 100644 --- a/cogs/wynncraft/wynncraftcog.py +++ b/cogs/wynncraft/wynncraftcog.py @@ -136,7 +136,7 @@ class WynncraftCog(commands.Cog): # get max_combat_lvl_class if not max_combat_lvl_class or cl["professions"]["combat"]["level"] > max_combat_lvl_class["professions"]["combat"]["level"]: - await self._log("cl: %s, max_combat_lvl_class: %s" % (cl, max_combat_lvl_class)) + # await self._log("cl: %s, max_combat_lvl_class: %s" % (cl, max_combat_lvl_class)) max_combat_lvl_class = cl await self._log("Setting max_combat_lvl_class role") @@ -148,7 +148,7 @@ class WynncraftCog(commands.Cog): combat_role_index = max_combat_lvl // 10 if combat_role_index > 10: combat_role_index = 10 combat_role_id = roles_combat_level[combat_role_index] - combat_role = self.bot.get_role(combat_role_id) + combat_role = guild.get_role(combat_role_id) if combat_role not in discord_member.roles: await self._log("Add role: %s" % combat_role) # await discord_member.add_roles(combat_role)