Last active
October 28, 2021 11:17
-
-
Save ThinaticSystem/5e260ae076a8a8cb75391ff015490fd0 to your computer and use it in GitHub Desktop.
randomReactor(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
### { | |
name: "randomReactor" | |
author: "ThinaticSystem" | |
version: 1 | |
description: "ランダムで絵文字をリアクションするやつ" | |
permissions: ["write:reactions"] | |
config: [] | |
} | |
@react(note) { | |
#emojis = [":yattare:" ":yametare:" "🌵"] | |
#chosenEmoji = emojis[Math:rnd(1 Arr:len(emojis))] | |
Mk:api("notes/reactions/create" { noteId: note.id reaction: chosenEmoji }) | |
} | |
Plugin:register_note_action("👍❤️😆🎉🍮❓" react) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment