From 9ca55a54619e6aa477b413298b5464afed31a49a Mon Sep 17 00:00:00 2001 From: Ave Ozkal Date: Mon, 17 Jun 2019 19:11:08 +0300 Subject: [PATCH] hex: better uppercase --- cogs/basic.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cogs/basic.py b/cogs/basic.py index 50a681a..1d5ee43 100644 --- a/cogs/basic.py +++ b/cogs/basic.py @@ -17,7 +17,8 @@ class Basic(Cog): @commands.command(name="hex") async def _hex(self, ctx, num: int): """Converts base 10 to 16 (for emummc sector calculation)""" - await ctx.send(f"{ctx.author.mention}: {hex(num).upper()}") + hex_val = hex(num).upper().replace("0X", "0x") + await ctx.send(f"{ctx.author.mention}: {hex_val}") @commands.guild_only() @commands.command()