返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
m

mastodon-publisher

Publish content to Mastodon. Use when you need to post a Mastodon status.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.5.0
安全检测
已通过
2,599
下载量
0
收藏
概述
安装方式
版本历史

mastodon-publisher

# Mastodon Publisher Publish content to Mastodon. Use when you need to share updates, posts, or media. ## Usage ### Post one or more statuses to Mastodon Post a new status to Mastodon with Bun: ```bash bun {baseDir}/scripts/tootbot.js '{"status": "Hello, Mastodon!"}' '{"status": "Goodby, Mastodon!"}' ``` JSON fields | Name | Description | Type | Example | Required | Default | | --------------------- | ---------------------------------------- | ----------------------------------------------- | ----------------------------------------------------- | -------- | -------- | | `status` | The text content of the status | string | "Hello, World" | yes^1 | N/A | | `visibility` | Sets the visibility of the posted status | `public` or `private` or `unlisted` or `direct` | "private" | no | "public" | | `language` | ISO 639-1 language code for this status | ISO-639-1 Language Code | "en" | no | | | `scheduledAt` | Datetime at which to schedule a status | RFC3339 date time | "2029-02-03T15:30:45.000Z" | no | | | `quoteApprovalPolicy` | Sets who is allowed to quote the status | `public` or `followrs` or `nobody` | "nobody" | no | "public | | `media` | Media to be attached to the status | array of `{file, description}` objects | `{"file": "/path/to/foo.png", "description" : "Foo"}` | no^2 | | - ^1 `status` can be ommitted when one or `--media-path` parameters are present - ^2 one or `media` objects must be present if `status` is ommitted - ^2 `media.description` is optional Environment Variables | Name | Description | Example | | ----------------------- | -------------------------- | ------------------------- | | `MASTODON_URL` | Your Mastodon instance URL | `https://mastodon.social` | | `MASTODON_ACCESS_TOKEN` | Your Mastodon access token | `xAyBzC` | ## Examples - **Post a new status** ```bash bun {baseDir}/scripts/tootbot.js '{"status": "Hello, Mastodon"}' ``` Read the output and summarize it for the user. - **Post a scheduled status** ```bash bun {baseDir}/scripts/tootbot.js '{"status": "Hello, future!", "scheduledAt" : "2030-02-05T13:21:34.000Z"}' ``` Read the output and summarize it for the user. - **Post a scheduled status with visibility, language, quote approval policy, and a single media attachment** ```bash bun {baseDir}/scripts/tootbot.js <<EOF { "status" : "Dorood", "visibility" : "public", "language" : "fa", "scheduledAt" : "2029-02-03T15:30:45.123456789+03:30", "quoteApprovalPolicy" : "followers", "media" : [ { "file" : "/path/to/media.png", "description" : "Nowrooz Pirooz" } ] } EOF ``` Read the output and summarize it for the user. - **Post a new status with media multiple attachments** ```bash bun {baseDir}/scripts/tootbot.js <<EOF { "status" : "Edsger W Dijkstra", "visibility" : "public", "language" : "fa", "scheduledAt" : "2029-02-03T15:30:45.123456789+03:30", "quoteApprovalPolicy" : "followers", "media" : [ { "file" : "/path/to/dijkstra.png", "description" : "Portrait" }, { "file" : "/path/to/signature.png", "description" : "Signature" } ] } EOF ``` - **Post a new status with media attachments and no status text** ```bash bun {baseDir}/scripts/tootbot.js <<EOF { "media" : [ { "file" : "/path/to/flower-1.png", "description" : "White Rose" }, { "file" : "/path/to/flower-2.png", "description" : "Red Rose" } ] } EOF ``` ## Notes - Requires `bun` to be installed and available in the PATH.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 tootbot-1776382752 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 tootbot-1776382752 技能

通过命令行安装

skillhub install tootbot-1776382752

下载 Zip 包

⬇ 下载 mastodon-publisher v0.5.0

文件大小: 122.37 KB | 发布时间: 2026-4-17 14:27

v0.5.0 最新 2026-4-17 14:27
tootbot 0.5.0

- Switched implementation to use Bun instead of Node.js.
- Updated usage to accept JSON input; supports batch posting of multiple statuses.
- Added support for more flexible media attachments via JSON objects.
- Expanded trigger phrases to include "publish status to mastodon".
- Provided guidance for required environment variables (MASTODON_URL, MASTODON_ACCESS_TOKEN).

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部