🩹 - Fixed a problem with a var scope

This commit is contained in:
Florian SYLVAIN
2021-03-07 02:18:32 +01:00
parent e1e4caf3e1
commit 4d71863cb4
+1
View File
@@ -14,6 +14,7 @@ class LolCmds(commands.Cog):
@commands.command() @commands.command()
@commands.cooldown(1, 2, commands.BucketType.user) @commands.cooldown(1, 2, commands.BucketType.user)
async def lol_rank(self, ctx, invocator_name, x=None): async def lol_rank(self, ctx, invocator_name, x=None):
global CD_LOLRANK
CD_LOLRANK = 0 CD_LOLRANK = 0
if x is None: if x is None:
player = what_player(invocator_name) player = what_player(invocator_name)