Archived
1
0
Fork 0

Update bot.py

This commit is contained in:
yzhh 2021-11-10 13:00:03 +08:00
parent 553e0c1a55
commit 3a48f59441

View file

@ -66,6 +66,13 @@ async def _(event: Event):
return {'approve': True}
@bot.on('request.group.invite')
async def _(event: Event):
await bot.send_private_msg(user_id=event.user_id,
message='你好!本机器人暂时不主动同意入群请求。\n'
'请至https://github.com/Teahouse-Studios/bot/issues/new?assignees=OasisAkari&labels=New&template=1234.md&title=申请入群。')
@bot.on_notice('group_ban')
async def _(event: Event):
if event.user_id == int(Config("qq_account")):