Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
e1f2446
feat: add Misskey platform adapter
PaloMiku Sep 15, 2025
54444b5
fix: 修复 Misskey 配置项的大小写问题
PaloMiku Sep 15, 2025
8fb862c
feat: 添加消息链序列化功能和可见性解析逻辑
PaloMiku Sep 15, 2025
2737904
chore: 删除损坏的 Misskey 平台适配器工具函数文件
PaloMiku Sep 15, 2025
7041dfe
docs: 更新 Misskey 消息适配器设置描述信息
PaloMiku Sep 16, 2025
a930808
Merge branch 'AstrBotDevs:master' into feature/misskey-adapter-add
PaloMiku Sep 16, 2025
83808ce
feat: Misskey 单用户连续上下文对话支持
PaloMiku Sep 16, 2025
837e354
feat: 为 Astrbot 添加 Misskey 平台适配器的 ID 配置
PaloMiku Sep 16, 2025
abda76a
feat: 重构 Misskey 平台适配器,提取通用工具函数并优化消息处理逻辑
PaloMiku Sep 16, 2025
9faca7f
refactor: 清理 Misskey 平台适配器和 API 代码,移除冗余注释
PaloMiku Sep 16, 2025
c0f2b98
Merge branch 'AstrBotDevs:master' into feature/misskey-adapter-add
PaloMiku Sep 16, 2025
7dac790
fix: 修复了使用中和使用者反馈的多个问题
PaloMiku Sep 16, 2025
e0aa6ef
fix: 修改提及格式,确保提及在新行开始,提升帖子美观和易读性。
PaloMiku Sep 16, 2025
5bec5cd
feat: 添加默认可见性和本地仅限设置,优化 Misskey 平台适配器的配置
PaloMiku Sep 16, 2025
be32999
fix: 更新 Misskey 平台适配器配置,使用前缀以防止和其他适配器未来可能的冲突问题
PaloMiku Sep 16, 2025
0f76495
chore: rename 'misskey' to 'Misskey' in config
Soulter Sep 18, 2025
080c3ad
Merge branch 'AstrBotDevs:master' into feature/misskey-adapter-add
PaloMiku Sep 18, 2025
c7fad4b
feat: Misskey 适配器添加聊天消息响应功能,重构接收和发送逻辑为 Websockets 处理
PaloMiku Sep 18, 2025
4a629f4
fix: 增强 Misskey WebSocket 消息日志输出
PaloMiku Sep 18, 2025
a818fe6
refactor: 优化 Misskey 适配器的消息处理和日志输出
PaloMiku Sep 18, 2025
a71fd9b
fix: 增强 Misskey WebSocket 重连接逻辑
PaloMiku Sep 18, 2025
30b76da
feat: 增强 Misskey 适配器的消息处理,支持房间消息和相关功能,重构通用函数,清理代码重复冗余
PaloMiku Sep 18, 2025
2366ed5
fix: 不屏蔽唤醒前缀对默认 LLM 的唤醒
Soulter Sep 18, 2025
3f42c7a
fix: 透传所有的群聊消息事件
Soulter Sep 18, 2025
f59b44e
fix: 修复 message_type
Soulter Sep 18, 2025
15c4581
perf: 实现 send_streaming 以支援流式请求
Soulter Sep 18, 2025
cddc0d0
docs(README): update README.md
Soulter Sep 18, 2025
e75b789
fix: super().send(message) 被忽略
Soulter Sep 18, 2025
ed8b969
fix: 修正 session 结构
Soulter Sep 18, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ uv run main.py

<a href="https://discord.gg/hAVk6tgV36"><img alt="Discord_community" src="https://img.shields.io/badge/Discord-AstrBot-purple?style=for-the-badge&color=76bad9"></a>


## ⚡ 消息平台支持情况

| 平台 | 支持性 |
Expand All @@ -127,6 +126,8 @@ uv run main.py
| Discord | ✔ |
| [KOOK](https://github.com/wuyan1003/astrbot_plugin_kook_adapter) | ✔ |
| [VoceChat](https://github.com/HikariFroya/astrbot_plugin_vocechat) | ✔ |
| Satori | ✔ |
| Misskey | ✔ |

## ⚡ 提供商支持情况

Expand Down Expand Up @@ -172,7 +173,6 @@ pip install pre-commit
pre-commit install
```


## ❤️ Special Thanks

特别感谢所有 Contributors 和插件开发者对 AstrBot 的贡献 ❤️
Expand Down Expand Up @@ -200,14 +200,11 @@ pre-commit install
> 如果本项目对您的生活 / 工作产生了帮助,或者您关注本项目的未来发展,请给项目 Star,这是我维护这个开源项目的动力 <3

<div align="center">

[![Star History Chart](https://api.star-history.com/svg?repos=soulter/astrbot&type=Date)](https://star-history.com/#soulter/astrbot&Date)

</div>


</details>


_私は、高性能ですから!_

36 changes: 36 additions & 0 deletions astrbot/core/config/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,16 @@
"discord_guild_id_for_debug": "",
"discord_activity_name": "",
},
"Misskey": {
"id": "misskey",
"type": "misskey",
"enable": False,
"misskey_instance_url": "https://misskey.example",
"misskey_token": "",
"misskey_default_visibility": "public",
"misskey_local_only": False,
"misskey_enable_chat": True,
},
"Slack": {
"id": "slack",
"type": "slack",
Expand Down Expand Up @@ -337,6 +347,32 @@
"type": "string",
"hint": "如果你的网络环境为中国大陆,请在 `其他配置` 处设置代理或更改 api_base。",
},
"misskey_instance_url": {
"description": "Misskey 实例 URL",
"type": "string",
"hint": "例如 https://misskey.example,填写 Bot 账号所在的 Misskey 实例地址",
},
"misskey_token": {
"description": "Misskey Access Token",
"type": "string",
"hint": "连接服务设置生成的 API 鉴权访问令牌(Access token)",
},
"misskey_default_visibility": {
"description": "默认帖子可见性",
"type": "string",
"options": ["public", "home", "followers"],
"hint": "机器人发帖时的默认可见性设置。public:公开,home:主页时间线,followers:仅关注者。",
},
"misskey_local_only": {
"description": "仅限本站(不参与联合)",
"type": "bool",
"hint": "启用后,机器人发出的帖子将仅在本实例可见,不会联合到其他实例",
},
"misskey_enable_chat": {
"description": "启用聊天消息响应",
"type": "bool",
"hint": "启用后,机器人将会监听和响应私信聊天消息",
},
"telegram_command_register": {
"description": "Telegram 命令注册",
"type": "bool",
Expand Down
4 changes: 4 additions & 0 deletions astrbot/core/platform/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ async def load_platform(self, platform_config: dict):
from .sources.discord.discord_platform_adapter import (
DiscordPlatformAdapter, # noqa: F401
)
case "misskey":
from .sources.misskey.misskey_adapter import (
MisskeyPlatformAdapter, # noqa: F401
)
case "slack":
from .sources.slack.slack_adapter import SlackAdapter # noqa: F401
case "satori":
Expand Down
Loading