mirror of
https://github.com/Floriansylvain/Risitas_BOT.git
synced 2026-08-19 19:53:19 +02:00
🩹 - Fixed a problem with a var scope
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user