Skip to content

Commit

Permalink
同步dev (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
Reversedeer authored Oct 31, 2024
2 parents dc3358c + 1ac5470 commit a1e55a6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ _✨ 基于 NoneBot2 实现的 监测 QQ 群事件,群荣誉事件的插件✨
</p>



## 介绍:


> 监测群组的以下变动事件:
>
> 群成员增加、减少时,自动发送通知
Expand Down Expand Up @@ -83,6 +85,7 @@ pip install --upgrade nonebot-plugin-eventmonitor

## 配置


| config | type | default | example | usag |
| :--------: | :------: | :------: | :-------------------: | :----------------------------------------------------------: |
| SUPERUSERS | set[str] | set() | SUPERUSERS=["114514"] | 机器人超级用户,可以使用权限 [`SUPERUSER`](https://nonebot.dev/docs/2.0.0/api/permission#SUPERUSER) |
Expand Down
2 changes: 2 additions & 0 deletions nonebot_plugin_eventmonitor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from nonebot import get_driver, require
from nonebot.permission import SUPERUSER
from nonebot.plugin import on_notice, on_command

from nonebot.adapters.onebot.v11.permission import GROUP_OWNER, GROUP_ADMIN

from .utils import utils
Expand Down Expand Up @@ -137,6 +138,7 @@ async def _(flag: str = ArgStr("flag")) -> None:
await restart.send("已取消操作...")



with contextlib.suppress(Exception):
from nonebot.plugin import PluginMetadata

Expand Down
1 change: 1 addition & 0 deletions nonebot_plugin_eventmonitor/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ async def check_txt_to_img(check_txt_img):
return False
return check_txt_img


def get_function_name(self, key: str) -> str:
"""根据关键词获取对应功能名称"""
return self.path[key][0]
Expand Down

0 comments on commit a1e55a6

Please sign in to comment.