From e37acf1b71afbbe7dbeebfa26bae57d6d5e9b096 Mon Sep 17 00:00:00 2001 From: snowy Date: Tue, 30 Jan 2024 08:14:41 +0800 Subject: [PATCH] edit readme --- readme.md | 4 ++-- src/liteyuki_main/__init__.py | 11 ----------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/readme.md b/readme.md index 6ea0874a..4ab95a55 100644 --- a/readme.md +++ b/readme.md @@ -1,5 +1,5 @@
- +

@@ -15,7 +15,7 @@ - 基于[Nonebot2]("https://github.com/nonebot/nonebot2"),有良好的生态支持 - 集成了上一代轻雪的优点和~~缺点~~ -- 支持QQ/Telegram/Github通信,后续会支持更多的平台 +- 支持Telegram/Github通信,后续会支持更多的平台 ## 手动安装和部署 diff --git a/src/liteyuki_main/__init__.py b/src/liteyuki_main/__init__.py index 7388d31f..dd6481a2 100644 --- a/src/liteyuki_main/__init__.py +++ b/src/liteyuki_main/__init__.py @@ -48,22 +48,11 @@ async def _(bot: Bot, event: MessageEvent, arg: Message = CommandArg(), ): logger.opt(colors=True).warning(Language().get('log.main.fail_to_reg_su', USER_ID=event.user_id)) -@echo.handle() -async def _(bot: Bot, event: MessageEvent, arg: Message = CommandArg(), ): - await echo.send(arg) - @su_test.handle() async def _(): await su_test.send('suc') - -@ban.handle() -async def _(bot: Bot, event: MessageEvent, arg: Message = CommandArg(), ): - await bot.call_api('set_group_ban', group_id=event.group_id, user_id=int(arg), duration=60 * 60 * 24 * 365 * 10) - await ban.send('suc') - - def decode_text(text: str): # input a string, output a string # transfer cqcode to text