hex: better uppercase
This commit is contained in:
parent
941270a586
commit
9ca55a5461
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue