Commit Graph

30 Commits

Author SHA1 Message Date
RossAscends
13ba5cec49 add help page for macros 2023-07-06 06:11:13 +09:00
kingbri
afdab4c5b6 Regex: Add character name override
Sendas uses a different character's name for messages, so allow
the use of a character name override in the regex match function.
This overrides substituteParams to use a different value.

Signed-off-by: kingbri <bdashore3@proton.me>
2023-07-05 01:35:52 -04:00
kingbri
fee801c2a4 Regex: Upgrade engine
If the extension is disabled, don't use any regex formatting. In
addition, wrap all foreach logic into its own function which
reduces the size of all regex injections.

This commit also removes the need for working around static imports
as UI is separate from the engine and is therefore imported at the
same time as other non-static extensions.

Signed-off-by: kingbri <bdashore3@proton.me>
2023-07-05 01:30:50 -04:00
kingbri
ef7aa3941b Extensions: Add regex engine
Regex is a method that is commonly used to find and replace parts
of a string using a single pattern. Add support for using regex in
SillyTavern which allows users to dynamically change various aspects
of the chatting experience.

Users are able to choose where a given regex script should apply
(both invasive and non-invasive options!). Invasive options alter
chat history while non-invasive alters markdown display for the
entire chat.

A new variable called {{match}} is added in regex scripts which
substitutes in the found match from the original find regex script.

There is a lot more that can be added to this extension, but for now,
this is enough.

Signed-off-by: kingbri <bdashore3@proton.me>
2023-07-05 01:30:49 -04:00
Cohee
27ab509caf Split help command into pages 2023-07-05 01:06:24 +03:00
Cohee
872bbfad1a Slash command to quickly open a character by name 2023-07-05 00:15:12 +03:00
Cohee
6d33e44519 Fix "continue" as a slash command 2023-07-02 23:59:33 +03:00
Cohee
7a33042ea9 Add slash commands for chat styles and continue 2023-07-02 22:40:38 +03:00
Cohee
63bd4cd499 Fix selecting personas with quick reply 2023-07-01 19:25:04 +03:00
RossAscends
309a2ed564 fix /name for quickreplies (maybe stealth broken, test pls) 2023-07-01 13:33:36 +09:00
RossAscends
82a09d2feb batched slash commands 2023-06-23 20:21:01 +09:00
breathingmanually
2a235b7889 Add /comment -- adds a note/comment message not part of the chat 2023-06-21 02:22:20 -03:00
Cohee
4a507b2a46 Clarify wording for user name locking 2023-06-12 00:36:17 +03:00
Cohee
2a882c4285 Ability to set default persona for chats 2023-06-11 23:49:55 +03:00
Cohee
fc001b0b05 Bind user names to avatars (create personas) and select personas for chats 2023-06-11 18:49:00 +03:00
Cohee
3f79a066f6 Don't replace well-know substitution marcos with bias. Support macros in sys and sendas messages. 2023-06-09 02:50:35 +03:00
SillyLossy
9a7e17cfbc #394 Preserve system message by assigning group generation id 2023-05-29 12:57:30 +03:00
SillyLossy
8c48843d72 Translate impersonate and streaming responses. 4-state auto-mode for translation 2023-05-28 16:18:30 +03:00
SillyLossy
df0734aac4 #336 Slash commands / bias adjustments 2023-05-19 23:05:22 +03:00
SillyLossy
0d1f291003 Add /sendas command 2023-05-18 18:49:49 +03:00
SillyLossy
06f34478db More slash commands for A/N 2023-05-18 01:10:17 +03:00
SillyLossy
3f8435f676 Display toast when narrator name is set 2023-05-17 21:02:09 +03:00
SillyLossy
f3088517b9 Save chat after sending system message 2023-05-17 20:50:47 +03:00
SillyLossy
cb43fe13aa Somewhat usable system message narrator 2023-05-17 20:24:35 +03:00
SillyLossy
3eb2835460 Fix narrator message type error 2023-05-17 14:25:17 +03:00
SillyLossy
a3e584a6e3 Slash command to send a "neutral" message 2023-05-17 11:03:28 +03:00
SillyLossy
a9037560dc Add AN slash command 2023-05-16 17:32:24 +03:00
RossAscends
c4361d5f9f clarify /help text for /bg command 2023-05-12 17:38:37 +09:00
SillyLossy
15ee7fb233 Add help strings for slash commands 2023-04-24 15:24:22 +03:00
SillyLossy
87df0fc1dc Add slash command parser 2023-04-21 17:50:46 +03:00