diff --git a/cogs/basic.py b/cogs/basic.py index c579743..50a681a 100644 --- a/cogs/basic.py +++ b/cogs/basic.py @@ -4,6 +4,7 @@ import discord from discord.ext import commands from discord.ext.commands import Cog + class Basic(Cog): def __init__(self, bot): self.bot = bot @@ -13,6 +14,11 @@ class Basic(Cog): """Says hello. Duh.""" await ctx.send(f"Hello {ctx.author.mention}!") + @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()}") + @commands.guild_only() @commands.command() async def communitycount(self, ctx):