1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-05 00:45:50 +02:00

enhance(frontend/aiscript): AiScriptからtoastを発行できるように (#16071)

* enhance(frontend/aiscript): AiScriptからtoastを発行できるように

* Update Changelog
This commit is contained in:
かっこかり
2025-05-21 10:23:12 +09:00
committed by GitHub
parent 95093fc927
commit bd7633c70e
2 changed files with 6 additions and 0 deletions

View File

@@ -66,6 +66,11 @@ export function createAiScriptEnv(opts: { storageKey: string, token?: string })
});
return confirm.canceled ? values.FALSE : values.TRUE;
}),
'Mk:toast': values.FN_NATIVE(async ([text]) => {
utils.assertString(text);
os.toast(text.value);
return values.NULL;
}),
'Mk:api': values.FN_NATIVE(async ([ep, param, token]) => {
utils.assertString(ep);
if (ep.value.includes('://') || ep.value.includes('..')) {