Update bot.py
This commit is contained in:
parent
553e0c1a55
commit
3a48f59441
1 changed files with 7 additions and 0 deletions
|
@ -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")):
|
||||
|
|
Reference in a new issue