Skip to content

feat: 添加壁画插件 #707

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jul 26, 2025
Merged

feat: 添加壁画插件 #707

merged 8 commits into from
Jul 26, 2025

Conversation

he0119
Copy link
Owner

@he0119 he0119 commented Jul 26, 2025

壁画插件

壁画插件用于收藏、管理和分享群组内的图片(称为"壁画")。

功能特性

  • 收藏壁画:支持收藏图片并给图片命名
  • 查看壁画:根据名称查看收藏的壁画
  • 搜索壁画:模糊搜索壁画名称
  • 管理功能:删除壁画
  • 防重复:通过图片 hash 值避免重复收藏相同图片

使用方法

收藏壁画

/收藏壁画 壁画名称 [图片]

在发送命令的同时包含一张图片,将图片收藏为指定名称的壁画。

查看壁画

/壁画 壁画名称

根据名称查看壁画,会显示图片、收藏者和收藏时间。

搜索壁画

/搜索壁画 关键词

搜索包含关键词的壁画名称,返回匹配的壁画列表。

删除壁画(管理员)

/删除壁画 壁画名称

删除收藏的壁画(需要管理员权限)。

数据存储

  • 壁画数据存储在数据库中
  • 记录收藏者、收藏时间等信息
  • 使用 MD5 计算图片 hash 值防止重复

注意事项

  1. 每个群组的壁画是独立的
  2. 壁画名称在同一群组内必须唯一
  3. 相同的图片(相同hash值)在同一群组内只能收藏一次
  4. 删除壁画需要管理员权限

@github-actions github-actions bot added the enhancement New feature or request label Jul 26, 2025
@he0119 he0119 merged commit 4e02a2e into main Jul 26, 2025
7 checks passed
@he0119 he0119 deleted the feat/bihua branch July 26, 2025 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant