Skip to content

Commit

Permalink
🐛 fix: #135
Browse files Browse the repository at this point in the history
  • Loading branch information
yzyyz1387 committed Jan 2, 2025
1 parent 4489d48 commit e247fed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nonebot_plugin_admin/admin_role.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@

from .approve import g_admin


async def _deputy_admin(event: GroupMessageEvent) -> bool:
admins = g_admin()
gid = str(event.group_id)
if admins.get(gid):
return event.user_id in admins[gid]
else:
return False


DEPUTY_ADMIN: Permission = Permission(_deputy_admin)
"""匹配分管事件"""

0 comments on commit e247fed

Please sign in to comment.