mirror of
https://github.com/SilenceLurker/ST-Amily2-Chat-Optimisation.git
synced 2026-06-06 08:55:50 +00:00
Update prese_state.js
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import { SETTINGS_KEY, defaultPrompts, defaultMixedOrder } from './config.js';
|
import { SETTINGS_KEY, defaultPrompts, defaultMixedOrder } from './config.js';
|
||||||
import { safeTriggerSlash } from '../core/tavernhelper-compatibility.js';
|
import { compatibleTriggerSlash } from '../core/tavernhelper-compatibility.js';
|
||||||
|
|
||||||
let presetManager = {
|
let presetManager = {
|
||||||
activePreset: '默认预设',
|
activePreset: '默认预设',
|
||||||
@@ -266,7 +266,7 @@ export async function getPresetPrompts(sectionKey) {
|
|||||||
if (prompt.content) {
|
if (prompt.content) {
|
||||||
try {
|
try {
|
||||||
const command = `/echo ${prompt.content}`;
|
const command = `/echo ${prompt.content}`;
|
||||||
const replacedContent = await safeTriggerSlash(command);
|
const replacedContent = await compatibleTriggerSlash(command);
|
||||||
prompt.content = replacedContent;
|
prompt.content = replacedContent;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`[Amily2] 宏替换失败 for prompt at index ${index}:`, error);
|
console.error(`[Amily2] 宏替换失败 for prompt at index ${index}:`, error);
|
||||||
|
|||||||
Reference in New Issue
Block a user