diff options
author | Kyomotoi <[email protected]> | 2020-06-21 00:29:51 +0800 |
---|---|---|
committer | Kyomotoi <[email protected]> | 2020-06-21 00:29:51 +0800 |
commit | 7d129eb9e9cca5d0a06f7e699b425306fb8ce2f6 (patch) | |
tree | 37042c9792336747942c304e7a07a49f97dbe1a0 /AyaBot/plugins/other.py | |
parent | cc9ce1bfcd695c74fd3d2dbdc39bd147d444e6b7 (diff) | |
download | ATRI-7d129eb9e9cca5d0a06f7e699b425306fb8ce2f6.tar.gz ATRI-7d129eb9e9cca5d0a06f7e699b425306fb8ce2f6.tar.bz2 ATRI-7d129eb9e9cca5d0a06f7e699b425306fb8ce2f6.zip |
(FIX)
Diffstat (limited to 'AyaBot/plugins/other.py')
-rw-r--r-- | AyaBot/plugins/other.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/AyaBot/plugins/other.py b/AyaBot/plugins/other.py index bec5167..ec489ff 100644 --- a/AyaBot/plugins/other.py +++ b/AyaBot/plugins/other.py @@ -9,7 +9,7 @@ from nonebot import on_natural_language, NLPSession, IntentCommand bot = nonebot.get_bot() master = bot.config.SUPERUSERS -bangroup = [] #推送屏蔽群名单 +bangroup = bot.config.bangroup @on_command('抽签', only_to_me=False) @@ -20,6 +20,14 @@ async def _(session: CommandSession): async def _(session: CommandSession): await session.send(str(random.randint(1,6))) +@on_command('关于', aliases=['关于', '关于机器人'], only_to_me=False) +async def _(session: CommandSession): + await session.send('阿?想了解咱?\n写出咱的是Kyomotoi~\n他的主页:https://lolihub.icu\n项目地址:https://github.com/Kyomotoi/Aya') + +@on_command('帮助', aliases=['帮助', '食用方法'], only_to_me=False) +async def _(session: CommandSession): + await session.send('嗯...不会用咱的话,看这吧!https://lolihub.icu/#/robot/user') + @on_command('seach_this_group_p', aliases=['本群总人数', '总人数', '群人数'], only_to_me=False, permission=perm.GROUP) async def _(session: CommandSession): try: @@ -42,7 +50,7 @@ async def send_all_group(session: CommandSession): for group in group_list: if group['group_id'] not in bangroup: try: - await bot.send_group_msg( group_id=group['group_id'], message='ADMIN推送:\n' + msg) + await bot.send_group_msg( group_id=group['group_id'], message=msg) except: pass await session.send('推送完成')
\ No newline at end of file |