diff options
author | Kyomotoi <[email protected]> | 2020-07-08 09:11:36 +0800 |
---|---|---|
committer | Kyomotoi <[email protected]> | 2020-07-08 09:11:36 +0800 |
commit | 65b1fc14bc1cd74457f68338171bb3e985d52eef (patch) | |
tree | 64847b93235aac8c6916b35e1e56225be9fe2837 /AyaBot/plugins | |
parent | 328863a19eb98e4d011b9aaa315fa62587c11cff (diff) | |
download | ATRI-65b1fc14bc1cd74457f68338171bb3e985d52eef.tar.gz ATRI-65b1fc14bc1cd74457f68338171bb3e985d52eef.tar.bz2 ATRI-65b1fc14bc1cd74457f68338171bb3e985d52eef.zip |
[REC] welcome
Diffstat (limited to 'AyaBot/plugins')
-rw-r--r-- | AyaBot/plugins/welcome.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/AyaBot/plugins/welcome.py b/AyaBot/plugins/welcome.py index 1da0948..859da36 100644 --- a/AyaBot/plugins/welcome.py +++ b/AyaBot/plugins/welcome.py @@ -1,7 +1,6 @@ import nonebot -from nonebot import on_command, on_natural_language, on_notice +from nonebot import on_command, on_notice from nonebot import CommandSession -from nonebot import session from nonebot.notice_request import NoticeSession, RequestSession from nonebot.plugin import on_request from aiocqhttp.exceptions import ActionFailed @@ -46,7 +45,7 @@ async def bot_request(session: RequestSession): print(mt) if session.event.sub_type == 'invite': - + if welcome_switch: await session.bot.send_private_msg(self_id = session.self_id, user_id = u, message='你的请求吾辈已经告诉主人,请等待咱主人同意。\n作者联系方式:\nhttps://lolihub.icu/#/about') |