Skip to content

Izayoi9/astrbot_plugin_msg_formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

astrbot-plugin-msg-formatter

AstrBot 消息格式化插件,自动去除 AI 回复中的多余空行(将连续的 \n\n 替换为 \n)。

功能

  • 拦截所有消息发送路径,清理文本中的连续空行
  • 覆盖两种消息路径:
    • 普通 LLM 回复:通过 on_decorating_result 钩子处理
    • 工具调用发送(如 send_message_to_user):通过 patch Context.send_message 处理

安装

将本插件放入 AstrBot 的 data/plugins/ 目录下,重启 AstrBot 即可。

配置

无需配置,插件加载后自动生效。

About

AstrBot 消息格式化插件 - 去除 AI 回复中多余空行

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages