Created
May 27, 2023 01:25
-
-
Save alpaca-honke/8b9763e89f5642596ec022926f573e5d to your computer and use it in GitHub Desktop.
Misskeyにおいて、他のユーザーのノートをリノートして、そのリノートを自分のプロフィールにピン留めするプラグインです。リノート解除でピン留めも解除されます。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// @ 0.13.2 | |
| ### { | |
| name: "他のユーザーのノートをリノートして自分のプロフィールにピン留め" | |
| version: 0.0 | |
| author: "Alkappa/alpaca-honke" | |
| description: "他のユーザーのノートをリノートして、そのリノートを自分のプロフィールにピン留めします。リノート解除でピン留めも解除されます。" | |
| permissions: ["write:notes", "write:account"] | |
| config: null | |
| } | |
| @RenoteAndPin(note) { | |
| let renote_note = Mk:api("notes/create" {renoteId: note.id}) | |
| let renote_id = renote_note.createdNote.id | |
| Mk:api("i/pin", {noteId: renote_id}) | |
| Mk:dialog("完了" "ピン留めしました" "success") | |
| } | |
| Plugin:register_note_action("RNしてピン留め" RenoteAndPin) |
Author
AiScript v1.1.x に対応させたバージョン(引数の区切りをつけたもの)を作成しました
https://gist.github.com/alpaca-honke/39ecd3882fba4a717fa9f155b2c47297
有り難うございます!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Misskeyのバージョンが上がって動かなくなりましたが、引数の区切りを
,にしたら動きました