mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
add {{arg::*}} to replace missing args with empty string
This commit is contained in:
@ -1297,6 +1297,7 @@ export class QuickReply {
|
||||
for (const key of Object.keys(args)) {
|
||||
scope.setMacro(`arg::${key}`, args[key]);
|
||||
}
|
||||
scope.setMacro('arg::*', '');
|
||||
if (isEditor) {
|
||||
this.abortController = new SlashCommandAbortController();
|
||||
}
|
||||
|
@ -109,6 +109,7 @@ export class QuickReplySet {
|
||||
const parser = new SlashCommandParser();
|
||||
const closure = parser.parse(qr.message, true, [], qr.abortController, qr.debugController);
|
||||
closure.onProgress = (done, total) => qr.updateEditorProgress(done, total);
|
||||
closure.scope.setMacro('arg::*', '');
|
||||
// closure.abortController = qr.abortController;
|
||||
// closure.debugController = qr.debugController;
|
||||
// const stepper = closure.executeGenerator();
|
||||
|
Reference in New Issue
Block a user