Add more aliases for /help pages

This commit is contained in:
Cohee
2023-11-04 21:35:50 +02:00
parent 4dccd4a053
commit 8183849fe4

View File

@ -639,21 +639,34 @@ async function sendCommentMessage(_, text) {
await saveChatConditional(); await saveChatConditional();
} }
/**
* Displays a help message from the slash command
* @param {any} _ Unused
* @param {string} type Type of help to display
*/
function helpCommandCallback(_, type) { function helpCommandCallback(_, type) {
switch (type?.trim()) { switch (type?.trim()?.toLowerCase()) {
case 'slash': case 'slash':
case 'commands':
case 'slashes':
case 'slash commands':
case '1': case '1':
sendSystemMessage(system_message_types.SLASH_COMMANDS); sendSystemMessage(system_message_types.SLASH_COMMANDS);
break; break;
case 'format': case 'format':
case 'formatting':
case 'formats':
case 'chat formatting':
case '2': case '2':
sendSystemMessage(system_message_types.FORMATTING); sendSystemMessage(system_message_types.FORMATTING);
break; break;
case 'hotkeys': case 'hotkeys':
case 'hotkey':
case '3': case '3':
sendSystemMessage(system_message_types.HOTKEYS); sendSystemMessage(system_message_types.HOTKEYS);
break; break;
case 'macros': case 'macros':
case 'macro':
case '4': case '4':
sendSystemMessage(system_message_types.MACROS); sendSystemMessage(system_message_types.MACROS);
break; break;