Add help strings for slash commands

This commit is contained in:
SillyLossy
2023-04-24 15:24:22 +03:00
parent 335d8ad440
commit 15ee7fb233
3 changed files with 26 additions and 3 deletions

View File

@ -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 = {};
}