Files
abot/plugins/github_opengraph/config.toml
liuwei 40ba461418 新增GitHub OpenGraph插件:自动解析GitHub链接并发送预览图
变更项:

1. 新增 github_opengraph 插件主逻辑,支持 fuzzy/exact 两种匹配模式。

2. 新增群功能权限注册(GITHUB_OPENGRAPH),对齐现有群权限开关机制。

3. 实现 GitHub 链接标准化、去重、限流、OpenGraph URL 生成与图片下载发送。

4. 新增 config.toml,提供 enable、match_mode、max_links_per_message、hash_salt、request_timeout_seconds 配置。

5. 新增 README 使用说明与示例。
2026-04-22 11:40:17 +08:00

18 lines
460 B
TOML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[GithubOpenGraph]
enable = true
# 匹配模式:
# - fuzzy在任意文本中提取 GitHub 链接(推荐)
# - exact整条消息必须是 GitHub 链接才触发
match_mode = "fuzzy"
# 每条消息最多处理多少个 GitHub 链接,避免刷屏
max_links_per_message = 3
# OpenGraph 哈希前缀盐值(可选,不填会基于链接本身计算)
hash_salt = ""
# 拉取 OpenGraph 图片的超时时间(秒)
request_timeout_seconds = 15