Add documentation related

This commit is contained in:
Kwaroran
2025-05-18 23:13:55 +09:00
parent 12d87ac706
commit 171c5e5e3a
2 changed files with 63 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ import type { OpenAIChat } from './process/index.svelte';
import hljs from 'highlight.js/lib/core'
import 'highlight.js/styles/atom-one-dark.min.css'
import { language } from 'src/lang';
import airisu from '../etc/airisu.cbs?raw'
const markdownItOptions = {
html: true,
@@ -1752,6 +1753,14 @@ function basicMatcher (p1:string,matcherArg:matcherArg,vars:{[key:string]:string
case 'iserror':{
return arra[1].toLocaleLowerCase().startsWith('error:') ? '1' : '0'
}
//the underlined ones are for internal use only.
//these doesn't support backward compatibility and breaking changes could happen easily
//these SHOULD NOT be used in any other place, and SHOULD NOT be documented
case '__risuaixa__':{
if(DBState.db.characters[get(selectedCharID)]?.chaId === 'risuaixa'){
return airisu
}
}
}
}
if(p1.startsWith('random')){