From cec3a97227dd3f9a88bbafe7f2bc96bf513f53ae Mon Sep 17 00:00:00 2001 From: Kyomotoi <1172294279@qq.com> Date: Sun, 2 Aug 2020 00:29:45 +0800 Subject: [Update] Refactor this project --- ATRIbot/plugins/other.py | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 ATRIbot/plugins/other.py (limited to 'ATRIbot/plugins/other.py') diff --git a/ATRIbot/plugins/other.py b/ATRIbot/plugins/other.py deleted file mode 100644 index a2933e9..0000000 --- a/ATRIbot/plugins/other.py +++ /dev/null @@ -1,28 +0,0 @@ -# -*- coding:utf-8 -*- -import nonebot -from nonebot import on_command, CommandSession, permission as perm - - -bot = nonebot.get_bot() - - -@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/ATRI') - -@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: - seach_group_member = await session.bot.get_group_member_list( - group_id=session.event.group_id - ) - except: - print('error') - await session.send('获取数据时出问题,请重试') - return - - await session.send(f'本群目前共有{len(seach_group_member)}人') -- cgit v1.2.3