mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
don't add args._scope etc to macros
This commit is contained in:
@ -1295,6 +1295,7 @@ export class QuickReply {
|
|||||||
if (this.message?.length > 0 && this.onExecute) {
|
if (this.message?.length > 0 && this.onExecute) {
|
||||||
const scope = new SlashCommandScope();
|
const scope = new SlashCommandScope();
|
||||||
for (const key of Object.keys(args)) {
|
for (const key of Object.keys(args)) {
|
||||||
|
if (key[0] == '_') continue;
|
||||||
scope.setMacro(`arg::${key}`, args[key]);
|
scope.setMacro(`arg::${key}`, args[key]);
|
||||||
}
|
}
|
||||||
scope.setMacro('arg::*', '');
|
scope.setMacro('arg::*', '');
|
||||||
|
Reference in New Issue
Block a user