mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Add help strings for slash commands
This commit is contained in:
@ -91,7 +91,7 @@ import {
|
||||
|
||||
import { debounce, delay } from "./scripts/utils.js";
|
||||
import { extension_settings, loadExtensionSettings } from "./scripts/extensions.js";
|
||||
import { executeSlashCommands } from "./scripts/slash-commands.js";
|
||||
import { executeSlashCommands, getSlashCommandsHelp } from "./scripts/slash-commands.js";
|
||||
|
||||
//exporting functions and vars for mods
|
||||
export {
|
||||
@ -1067,6 +1067,10 @@ function sendSystemMessage(type, text) {
|
||||
newMessage.mes = text;
|
||||
}
|
||||
|
||||
if (type == system_message_types.HELP) {
|
||||
newMessage.mes += getSlashCommandsHelp();
|
||||
}
|
||||
|
||||
if (!newMessage.extras) {
|
||||
newMessage.extras = {};
|
||||
}
|
||||
|
Reference in New Issue
Block a user