Skip to content

Commit

Permalink
feat(qqstatplugin): 允许 AdminQQ 在 AdminGroups 获取 #日历
Browse files Browse the repository at this point in the history
  • Loading branch information
yiyungent committed Apr 17, 2022
1 parent e9cf3a1 commit 81743bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/QQStatPlugin/QQStatPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public void OnGroupMessage((Bot s, GroupMessageEvent e) obj, string message, str
}
if (member != null)
{
if (member.Role == Konata.Core.Common.RoleType.Admin || member.Role == Konata.Core.Common.RoleType.Owner)
if (member.Uin.ToString() == settingsModel.AdminQQ || member.Role == Konata.Core.Common.RoleType.Owner || member.Role == Konata.Core.Common.RoleType.Admin)
{
// 群管理员
if (message.Contains("#日历"))
Expand Down
2 changes: 1 addition & 1 deletion plugins/QQStatPlugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

> 需要设置 `BaseUrl`, `ScreenshotUrl`, `ScreenshotUrl` 保持默认即可
> `AdminGroups` 群范围内, 群管理员/群主 发送 `#日历` , 获取本群 日历图
> `AdminGroups` 群范围内, AdminQQ/群主/群管理员 发送 `#日历` , 获取本群 日历图
或者发送 `#日历 目标个人QQ号`, 获取此人 在机器人收集的 **所有群聊** 数据形成的日历, 不限本群

Expand Down

0 comments on commit 81743bf

Please sign in to comment.