mirror of
https://github.com/xuthus83/LittlePaimon.git
synced 2024-12-16 13:40:53 +08:00
9 lines
395 B
Python
9 lines
395 B
Python
from nonebot import on_notice, NoticeSession
|
|
|
|
@on_notice('group_decrease.kick_me')
|
|
async def kick_me_alert(session: NoticeSession):
|
|
group_id = session.event.group_id
|
|
operator_id = session.event.operator_id
|
|
coffee = session.bot.config.SUPERUSERS[0]
|
|
await session.bot.send_private_msg(self_id=session.event.self_id, user_id=coffee, message=f'被Q{operator_id}踢出群{group_id}')
|