Skip to content

IppClub/ncatbot-catcat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CatCat 插件

IppClub

CatCat 是一个用于 Ncatbot 的插件,提供了群聊消息的自动回复功能。

功能

  • 自动回复群聊消息
  • 兼容回调函数注册
  • 支持自定义回复内容
  • 支持热修改prompt
  • 支持群聊历史记录存储
  • 支持@触发强制回复
  • 支持管理员远程配置

特性

  • 采用deepseek-chat作为对话引擎
  • 支持10条历史消息上下文
  • 防刷屏:消息间隔小于10秒不触发回复
  • 日志完整记录,支持故障排查

安装

  1. 将 CatCat 插件文件夹放置在 ncatbot/plugins 目录下。
  2. 确保在 ncatbot/plugins/CatCat/config 目录下存在以下配置文件:
    • config.yaml:包含 API 密钥等配置信息
    • cat_prompt.txt:包含自定义回复提示内容

配置

config/config.yaml 文件中,添加以下内容:

api_key: "your_api_key_here"
manager_id: "your_manager_qq_id"
message_delay: <message_delay>
max_history: <max_history>

其中 message_dalay 表示消息检测的延迟 其中 max_history 表示上下文联想的最大长度

cat_prompt.txt 文件中,添加自定义的回复提示内容。

使用

  1. 启动 Ncatbot。
  2. 在群聊中发送消息,CatCat 插件会根据配置自动回复消息。
  3. 发送 测试CatCat 消息以测试插件是否正常工作。

贡献

欢迎 提交问题贡献代码

许可证

此项目基于 MIT 许可证。

About

适用于NCatBot的LLM聊天插件

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages