Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
<grab>[feat]poke 判断自身
Browse files Browse the repository at this point in the history
  • Loading branch information
HornCopper committed Aug 22, 2024
1 parent 7caef33 commit 032d840
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plugins/grab/poke.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
from nonebot.adapters.onebot.v11 import PokeNotifyEvent, MessageSegment as ms
from nonebot import on_notice

from src.tools.config import Config

poke_me = on_notice(priority=5)

@poke_me.handle()
async def _(event: PokeNotifyEvent):
if event.group_id == None:
if event.group_id == None or event.self_id not in list(Config.bot_basic.notice_to.__dict__):
return
else:
await poke_me.finish("音卡在呢!找音卡有什么事吗!(^ω^)" + ms.image("https://inkar-suki.codethink.cn/Inkar-Suki-Docs/img/emoji.jpg"))

0 comments on commit 032d840

Please sign in to comment.