feat(AiScript): Mk:nyaize() を追加 (#12136)
* feat(AiScript): Mk:nyaize * Update Changelog * Fix relative path
This commit is contained in:
parent
4dd4a11cef
commit
024546206d
2 changed files with 6 additions and 0 deletions
|
@ -9,6 +9,7 @@ import { $i } from '@/account.js';
|
|||
import { miLocalStorage } from '@/local-storage.js';
|
||||
import { customEmojis } from '@/custom-emojis.js';
|
||||
import { url, lang } from '@/config.js';
|
||||
import { nyaize } from '@/scripts/nyaize.js';
|
||||
|
||||
export function createAiScriptEnv(opts) {
|
||||
return {
|
||||
|
@ -71,5 +72,9 @@ export function createAiScriptEnv(opts) {
|
|||
'Mk:url': values.FN_NATIVE(() => {
|
||||
return values.STR(window.location.href);
|
||||
}),
|
||||
'Mk:nyaize': values.FN_NATIVE(([text]) => {
|
||||
utils.assertString(text);
|
||||
return values.STR(nyaize(text.value));
|
||||
}),
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue