summaryrefslogtreecommitdiff
path: root/ATRI/plugins/essential.py
diff options
context:
space:
mode:
authorKyomotoi <[email protected]>2021-04-24 16:20:19 +0800
committerKyomotoi <[email protected]>2021-04-24 16:20:19 +0800
commite01b1ed882a01d03b763e9b06b8b5d0608fc5f21 (patch)
treea2226a4c1c505f66d5226a1ddae02038ad92a046 /ATRI/plugins/essential.py
parent0678347859176671d5ff11852f339336a595e2f5 (diff)
downloadATRI-e01b1ed882a01d03b763e9b06b8b5d0608fc5f21.tar.gz
ATRI-e01b1ed882a01d03b763e9b06b8b5d0608fc5f21.tar.bz2
ATRI-e01b1ed882a01d03b763e9b06b8b5d0608fc5f21.zip
✨🔥🎨🐛♻️📝 更新
新增:开发工具中ub paste,再也不怕长消息了。 新增:错误处理两项`ReadFileError`、`FormatError` 修复:bot退群显示被自己踢出群 删除:Service部分内容 删除:hitokoto本地库,改用请求 优化:b站小程序抓取 重构:bot管理部分,对命令进行简化
Diffstat (limited to 'ATRI/plugins/essential.py')
-rw-r--r--ATRI/plugins/essential.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ATRI/plugins/essential.py b/ATRI/plugins/essential.py
index 9304279..3ebaa36 100644
--- a/ATRI/plugins/essential.py
+++ b/ATRI/plugins/essential.py
@@ -261,6 +261,8 @@ async def _group_member_event(bot: Bot, event: GroupIncreaseNoticeEvent) -> None
@group_member_event.handle()
async def _gro(bot: Bot, event: GroupDecreaseNoticeEvent) -> None:
if event.is_tome():
+ if event.user_id != event.self_id:
+ return
msg = (
"呜呜呜,主人"
f"咱被群 {event.group_id} 里的 {event.operator_id} 扔出来了..."
@@ -279,7 +281,7 @@ group_admin_event = sv.on_notice()
@group_admin_event.handle()
async def _group_admin_event(bot: Bot, event: GroupAdminNoticeEvent) -> None:
- if event.is_tome():
+ if not event.is_tome():
return
for superuser in Config.BotSelfConfig.superusers: