| 464 | | 493 | |
| 465 | SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'note', | 494 | SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'note', |
| 466 | callback: setNoteTextCommand, | 495 | callback: setNoteTextCommand, |
| | 496 | returns: 'current author\'s note', |
| 467 | unnamedArgumentList: [ | 497 | unnamedArgumentList: [ |
| 468 | new SlashCommandArgument( | 498 | new SlashCommandArgument( |
| 469 | 'text', [ARGUMENT_TYPE.STRING], true, | 499 | 'text', [ARGUMENT_TYPE.STRING], false, |
| 470 | ), | 500 | ), |
| 471 | ], | 501 | ], |
| 472 | helpString: ` | 502 | helpString: ` |
| 473 | <div> | 503 | <div> |
| 474 | Sets an author's note for the currently selected chat. | 504 | Sets an author's note for the currently selected chat if specified and returns the current note. |
| 475 | </div> | 505 | </div> |
| 476 | `, | 506 | `, |
| 477 | })); | 507 | })); |
| 478 | SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'depth', | 508 | SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'depth', |
| | 509 | aliases: ['note-depth'], |
| 479 | callback: setNoteDepthCommand, | 510 | callback: setNoteDepthCommand, |
| | 511 | returns: 'current author\'s note depth', |
| 480 | unnamedArgumentList: [ | 512 | unnamedArgumentList: [ |
| 481 | new SlashCommandArgument( | 513 | new SlashCommandArgument( |
| 482 | 'number', [ARGUMENT_TYPE.NUMBER], true, | 514 | 'number', [ARGUMENT_TYPE.NUMBER], false, |
| 483 | ), | 515 | ), |
| 484 | ], | 516 | ], |
| 485 | helpString: ` | 517 | helpString: ` |
| 486 | <div> | 518 | <div> |
| 487 | Sets an author's note depth for in-chat positioning. | 519 | Sets an author's note depth for in-chat positioning if specified and returns the current depth. |
| 488 | </div> | 520 | </div> |
| 489 | `, | 521 | `, |
| 490 | })); | 522 | })); |
| 491 | SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'freq', | 523 | SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'freq', |
| | 524 | aliases: ['note-freq'], |
| 492 | callback: setNoteIntervalCommand, | 525 | callback: setNoteIntervalCommand, |
| | 526 | returns: 'current author\'s note insertion frequency', |
| 493 | namedArgumentList: [], | 527 | namedArgumentList: [], |
| 494 | unnamedArgumentList: [ | 528 | unnamedArgumentList: [ |
| 495 | new SlashCommandArgument( | 529 | new SlashCommandArgument( |
| 496 | 'number', [ARGUMENT_TYPE.NUMBER], true, | 530 | 'number', [ARGUMENT_TYPE.NUMBER], false, |
| 497 | ), | 531 | ), |
| 498 | ], | 532 | ], |
| 499 | helpString: ` | 533 | helpString: ` |
| 500 | <div> | 534 | <div> |
| 501 | Sets an author's note insertion frequency. | 535 | Sets an author's note insertion frequency if specified and returns the current frequency. |
| 502 | </div> | 536 | </div> |
| 503 | `, | 537 | `, |
| 504 | })); | 538 | })); |
| 505 | SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'pos', | 539 | SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'pos', |
| 506 | callback: setNotePositionCommand, | 540 | callback: setNotePositionCommand, |
| | 541 | aliases: ['note-pos'], |
| | 542 | returns: 'current author\'s note insertion position', |
| | 543 | namedArgumentList: [], |
| | 544 | unnamedArgumentList: [ |
| | 545 | new SlashCommandArgument( |
| | 546 | 'position', [ARGUMENT_TYPE.STRING], false, false, null, ['chat', 'scenario','before_scenario'], |
| | 547 | ), |
| | 548 | ], |
| | 549 | helpString: ` |
| | 550 | <div> |
| | 551 | Sets an author's note position if specified and returns the current position. |
| | 552 | </div> |
| | 553 | `, |
| | 554 | })); |
| | 555 | SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'note-role', |
| | 556 | callback: setNoteRoleCommand, |
| | 557 | returns: 'current author\'s note chat insertion role', |
| 507 | namedArgumentList: [], | 558 | namedArgumentList: [], |
| 508 | unnamedArgumentList: [ | 559 | unnamedArgumentList: [ |
| 509 | new SlashCommandArgument( | 560 | new SlashCommandArgument( |
| 510 | 'position', [ARGUMENT_TYPE.STRING], true, false, null, ['chat', 'scenario'], | 561 | 'position', [ARGUMENT_TYPE.STRING], false, false, null, ['system', 'user','assistant'], |
| 511 | ), | 562 | ), |
| 512 | ], | 563 | ], |
| 513 | helpString: ` | 564 | helpString: ` |
| 514 | <div> | 565 | <div> |
| 515 | Sets an author's note position. | 566 | Sets an author's note chat insertion role if specified and returns the current role. |
| 516 | </div> | 567 | </div> |
| 517 | `, | 568 | `, |
| 518 | })); | 569 | })); |