From 62686edabe7c2adcda166f9eec56e427780777ad Mon Sep 17 00:00:00 2001 From: lifehackerhansol Date: Wed, 4 Sep 2024 09:38:38 -0700 Subject: [PATCH] mkey: pad zeroes to the return value The master key input UI wants 5 digits. Provide the user 5 digits with leading zeroes so as to not get confused. --- cogs/assistance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/assistance.py b/cogs/assistance.py index c88c1cb9..3a4afda5 100644 --- a/cogs/assistance.py +++ b/cogs/assistance.py @@ -296,7 +296,7 @@ async def mkey(self, ctx: KurisuContext, device: Literal['3ds', 'dsi', 'wii', 'w async with self.bot.session.get(api_call) as r: if r.status == 200: ret = await r.json() - return await ctx.send(f'{ctx.author.mention if not ctx.interaction else ""} Your key is {ret["key"]}.', ephemeral=True) + return await ctx.send(f'{ctx.author.mention if not ctx.interaction else ""} Your key is {ret["key"]:05}.', ephemeral=True) else: return await ctx.send(f'{ctx.author.mention if not ctx.interaction else ""} API returned error {r.status}. Please check your values and try again.', ephemeral=True)