mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-12-02 08:54:44 +08:00
edit readme
This commit is contained in:
parent
fddbc732ef
commit
e37acf1b71
@ -1,5 +1,5 @@
|
||||
<div align="center">
|
||||
<img src="docs/img/snowy.png" style="width: 30%; margin-top:10%;">
|
||||
<img src="https://nya.liteyuki.icu:809/static/img/liteyuki_icon.png" style="width: 30%; margin-top:10%;">
|
||||
</div>
|
||||
<div align=center>
|
||||
<h2>
|
||||
@ -15,7 +15,7 @@
|
||||
|
||||
- 基于[Nonebot2]("https://github.com/nonebot/nonebot2"),有良好的生态支持
|
||||
- 集成了上一代轻雪的优点和~~缺点~~
|
||||
- 支持QQ/Telegram/Github通信,后续会支持更多的平台
|
||||
- 支持Telegram/Github通信,后续会支持更多的平台
|
||||
|
||||
## 手动安装和部署
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user