Last active
October 8, 2020 15:04
-
-
Save coord-e/a44ce16fc344dfc26614bb55391f0a00 to your computer and use it in GitHub Desktop.
どこからでもチャンネルに投稿するプラグイン
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: "どこからでもチャンネルに投稿するプラグイン" | |
version: "0.0.1" | |
author: "coord_e" | |
description: "どこからでもチャンネルに投稿したい...どこからでもチャンネルに投稿したくない?" | |
permissions: ["read:channels" "write:notes"] | |
} | |
@main() { | |
#channels = Mk:api("channels/followed" { limit: 100 }) | |
~~ (#channel, channels) { | |
Plugin:register_post_form_action(`チャンネルにテキストを投稿: {channel.name}` @(form update) { | |
Mk:api("notes/create" { text: form.text, channelId: channel.id }) | |
update("text" "") | |
}) | |
} | |
} | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment