1
0
forked from bot/app

edit readme

This commit is contained in:
2024-01-30 08:14:41 +08:00
parent fddbc732ef
commit e37acf1b71
2 changed files with 2 additions and 13 deletions

View File

@ -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