CMHopeSunshine fa12023db0 小派蒙
2022-03-13 21:25:42 +08:00

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}')