add hex command
This commit is contained in:
parent
edc7442532
commit
941270a586
1 changed files with 6 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue