mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-12-22 08:20:10 +00:00
enhance(client): AiScriptからカスタム絵文字一覧を参照できるように
This commit is contained in:
parent
0fa602a184
commit
956375e2e8
2 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue