mirror of
				https://github.com/SillyTavern/SillyTavern.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	Add more aliases for /help pages
This commit is contained in:
		| @@ -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; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user