summaryrefslogtreecommitdiff
path: root/ATRIbot/plugins/other.py
diff options
context:
space:
mode:
Diffstat (limited to 'ATRIbot/plugins/other.py')
-rw-r--r--ATRIbot/plugins/other.py28
1 files changed, 0 insertions, 28 deletions
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)}人')