From c82f6668aad9034ce8468b4fc32381c9b0f67fb6 Mon Sep 17 00:00:00 2001 From: Hipstercat Date: Tue, 1 Sep 2020 00:24:03 +0200 Subject: [PATCH] write --- 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 0d643af..d90836a 100644 --- a/cogs/wynncraft/wynncraftcog.py +++ b/cogs/wynncraft/wynncraftcog.py @@ -151,11 +151,11 @@ class WynncraftCog(commands.Cog): 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) + await discord_member.add_roles(combat_role) roles_to_remove = filter(lambda role: role.id in roles_combat_level and role.id != combat_role_id, discord_member.roles) if roles_to_remove: - # await discord_member.remove_roles(roles_to_remove) + await discord_member.remove_roles(roles_to_remove) await self._log("remove roles: %s" % roles_to_remove) else: await self._log("max_combat_lvl_class: %s, discord_member: %s (name: %s)" % (max_combat_lvl_class, discord_member, member_name))