added chat commands documentation

This commit is contained in:
zeb
2025-10-04 15:21:44 -04:00
parent 2a6d228f86
commit 762f53f180
3 changed files with 32 additions and 2 deletions

View File

@@ -129,7 +129,8 @@ public:
static Acore::ChatCommands::ChatCommandTable AHBotCommandTable = {
{"update", HandleAHBotUpdateCommand, SEC_GAMEMASTER, Acore::ChatCommands::Console::Yes},
{"reload", HandleAHBotReloadCommand, SEC_GAMEMASTER, Acore::ChatCommands::Console::Yes},
{"empty", HandleAHBotEmptyCommand, SEC_GAMEMASTER, Acore::ChatCommands::Console::Yes}
{"empty", HandleAHBotEmptyCommand, SEC_GAMEMASTER, Acore::ChatCommands::Console::Yes},
{"help", HandleAHBotHelpCommand, SEC_GAMEMASTER, Acore::ChatCommands::Console::Yes}
};
static Acore::ChatCommands::ChatCommandTable commandTable = {
@@ -166,6 +167,15 @@ public:
AuctionHouseBot::instance()->EmptyAuctionHouses();
return true;
}
static bool HandleAHBotHelpCommand(ChatHandler* handler, char const* /*args*/)
{
handler->PSendSysMessage("AuctionHouseBot commands:");
handler->PSendSysMessage(" .ahbot reload - Reloads configuration");
handler->PSendSysMessage(" .ahbot empty - Removes all auctions");
handler->PSendSysMessage(" .ahbot update - Runs an update cycle");
return true;
}
};
void AddAHBotScripts()