feat(commands/bot): add help command and fix nested reloading

This commit is contained in:
2024-12-30 16:21:15 -05:00
parent d0402a58e9
commit e4af64fa99
6 changed files with 41 additions and 38 deletions

View File

@@ -6,6 +6,15 @@ import utils
from state import start_time
async def help(message):
await utils.reply(
message,
", ".join(
[f"`{command.value}`" for command in commands.Command.__members__.values()]
),
)
async def uptime(message):
tokens = commands.tokenize(message.content)
parser = arguments.ArgumentParser(

View File

@@ -6,6 +6,7 @@ import constants
class Command(enum.Enum):
CLEAR = "clear"
EXECUTE = "execute"
HELP = "help"
JOIN = "join"
LEAVE = "leave"
PAUSE = "pause"

View File

@@ -178,10 +178,7 @@ async def volume(message):
if args.volume:
message.guild.voice_client.source.volume = float(args.volume) / 100.0
await utils.reply(
message,
f"{args.volume}",
)
await utils.add_check_reaction(message)
else:
await utils.reply(
message,