Update to 0.7.5 (#23)
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
},
|
},
|
||||||
"package": {
|
"package": {
|
||||||
"productName": "RisuAI",
|
"productName": "RisuAI",
|
||||||
"version": "0.7.4"
|
"version": "0.7.5"
|
||||||
},
|
},
|
||||||
"tauri": {
|
"tauri": {
|
||||||
"allowlist": {
|
"allowlist": {
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ export const languageEnglish = {
|
|||||||
+ "- **Modify Input** modifys user's input"
|
+ "- **Modify Input** modifys user's input"
|
||||||
+ "- **Modify Output** modifys character's output"
|
+ "- **Modify Output** modifys character's output"
|
||||||
+ "- **Modify Request Data** modifys current chat data when sent.\n\nIN must be a regex without flags and *\\*.\n\nOUT is a normal string."
|
+ "- **Modify Request Data** modifys current chat data when sent.\n\nIN must be a regex without flags and *\\*.\n\nOUT is a normal string."
|
||||||
|
+ "\n\n If OUT has {{data}} in string, it replaces to matched string."
|
||||||
+ "\n\n If OUT starts with **@@**, it doesn't replaces the string, but instead does a special effect if matching string founds."
|
+ "\n\n If OUT starts with **@@**, it doesn't replaces the string, but instead does a special effect if matching string founds."
|
||||||
+ "\n\n- @@emo (emotion name)\n\n if character is Emotion Images mode, sets (emotion name) as emotion and prevents default.",
|
+ "\n\n- @@emo (emotion name)\n\n if character is Emotion Images mode, sets (emotion name) as emotion and prevents default.",
|
||||||
experimental: "This is a experimental setting. it might be unstable.",
|
experimental: "This is a experimental setting. it might be unstable.",
|
||||||
|
|||||||
@@ -184,6 +184,7 @@ export const languageKorean = {
|
|||||||
+ "- **입력문 수정** 유저의 입력문을 수정합니다"
|
+ "- **입력문 수정** 유저의 입력문을 수정합니다"
|
||||||
+ "- **출력문 수정** 캐릭터의 출력문을 수정합니다"
|
+ "- **출력문 수정** 캐릭터의 출력문을 수정합니다"
|
||||||
+ "- **리퀘스트 데이터 수정** 리퀘스트를 보낼 때 채팅 데이터를 수정합니다.\n\nIN은 flag와 *\\* 가 없는 Regex여야 합니다.\n\nOUT은 일반 문자열입니다."
|
+ "- **리퀘스트 데이터 수정** 리퀘스트를 보낼 때 채팅 데이터를 수정합니다.\n\nIN은 flag와 *\\* 가 없는 Regex여야 합니다.\n\nOUT은 일반 문자열입니다."
|
||||||
|
+ "\n\n 만약 OUT 문자열에 {{data}}가 있으면, 매칭된 문자열로 바뀝니다."
|
||||||
+ "\n\n 만약 OUT이 @@로 시작된다면, 특수한 효과를 냅니다"
|
+ "\n\n 만약 OUT이 @@로 시작된다면, 특수한 효과를 냅니다"
|
||||||
+ "\n\n- @@emo (emotion name)\n\n 감정 이미지 모드일 시 (emotion name)을 감정으로 정하고 감정 처리를 하지 않습니다.",
|
+ "\n\n- @@emo (emotion name)\n\n 감정 이미지 모드일 시 (emotion name)을 감정으로 정하고 감정 처리를 하지 않습니다.",
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -53,9 +53,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$:{
|
|
||||||
loadTokenize(currentChar.data)
|
|
||||||
}
|
|
||||||
|
|
||||||
async function addGroupChar(){
|
async function addGroupChar(){
|
||||||
let group = currentChar.data
|
let group = currentChar.data
|
||||||
@@ -134,6 +131,7 @@
|
|||||||
}
|
}
|
||||||
emos = currentChar.data.emotionImages
|
emos = currentChar.data.emotionImages
|
||||||
DataBase.set(database)
|
DataBase.set(database)
|
||||||
|
loadTokenize(currentChar.data)
|
||||||
}
|
}
|
||||||
|
|
||||||
onDestroy(unsub);
|
onDestroy(unsub);
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { cloneDeep } from 'lodash';
|
|||||||
|
|
||||||
export const DataBase = writable({} as any as Database)
|
export const DataBase = writable({} as any as Database)
|
||||||
export const loadedStore = writable(false)
|
export const loadedStore = writable(false)
|
||||||
export let appVer = '0.7.4'
|
export let appVer = '0.7.5'
|
||||||
|
|
||||||
|
|
||||||
export function setDatabase(data:Database){
|
export function setDatabase(data:Database){
|
||||||
|
|||||||
@@ -16,7 +16,8 @@ export function processScriptFull(char:character, data:string, mode:ScriptMode){
|
|||||||
if(script.type === mode){
|
if(script.type === mode){
|
||||||
const reg = new RegExp(script.in,'g')
|
const reg = new RegExp(script.in,'g')
|
||||||
data = data.replace(reg, (v) => {
|
data = data.replace(reg, (v) => {
|
||||||
if(script.out.startsWith('@@emo ')){
|
const outScript = script.out.replace(dreg, v)
|
||||||
|
if(outScript.startsWith('@@emo ')){
|
||||||
if(char.viewScreen !== 'emotion'){
|
if(char.viewScreen !== 'emotion'){
|
||||||
return v
|
return v
|
||||||
}
|
}
|
||||||
@@ -44,7 +45,7 @@ export function processScriptFull(char:character, data:string, mode:ScriptMode){
|
|||||||
}
|
}
|
||||||
return v
|
return v
|
||||||
}
|
}
|
||||||
return script.out.replace(dreg, v)
|
return outScript
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":"0.7.4"}
|
{"version":"0.7.5"}
|
||||||
|
|||||||
Reference in New Issue
Block a user