From 956375e2e8ce137929a9f5b4f81aaba3b30d4afb Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 16 Jan 2023 10:13:14 +0900 Subject: [PATCH] =?UTF-8?q?enhance(client):=20AiScript=E3=81=8B=E3=82=89?= =?UTF-8?q?=E3=82=AB=E3=82=B9=E3=82=BF=E3=83=A0=E7=B5=B5=E6=96=87=E5=AD=97?= =?UTF-8?q?=E4=B8=80=E8=A6=A7=E3=82=92=E5=8F=82=E7=85=A7=E3=81=A7=E3=81=8D?= =?UTF-8?q?=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + packages/frontend/src/scripts/aiscript/api.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ae0c78734..30ec16ded 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -123,6 +123,7 @@ You should also include the user name that made the change. - Client: add new mfm function (position, fg, bg) @syuilo - Client: show fireworks when visit user who today is birthday @syuilo - Client: show bot warning on screen when logged in as bot account @syuilo +- Client: AiScriptからカスタム絵文字一覧を参照できるように @syuilo - Client: improve overall performance of client @syuilo - Client: ui tweaks @syuilo - Client: clicker game @syuilo diff --git a/packages/frontend/src/scripts/aiscript/api.ts b/packages/frontend/src/scripts/aiscript/api.ts index 2a4422308..29736ac60 100644 --- a/packages/frontend/src/scripts/aiscript/api.ts +++ b/packages/frontend/src/scripts/aiscript/api.ts @@ -2,6 +2,7 @@ import { utils, values } from '@syuilo/aiscript'; import * as os from '@/os'; import { $i } from '@/account'; import { miLocalStorage } from '@/local-storage'; +import { customEmojis } from '@/custom-emojis'; export function createAiScriptEnv(opts) { let apiRequests = 0; @@ -9,6 +10,7 @@ export function createAiScriptEnv(opts) { USER_ID: $i ? values.STR($i.id) : values.NULL, USER_NAME: $i ? values.STR($i.name) : values.NULL, USER_USERNAME: $i ? values.STR($i.username) : values.NULL, + CUSTOM_EMOJIS: utils.jsToVal(customEmojis), 'Mk:dialog': values.FN_NATIVE(async ([title, text, type]) => { await os.alert({ type: type ? type.value : 'info',