此方晚安文档更新
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-05-13 15:33:40 +08:00
parent c11d29e136
commit 881b08c41f
2 changed files with 11 additions and 1 deletions

View File

@ -0,0 +1,8 @@
# 指令介绍
**此方晚安** - 让此方 BOT 禁言你一段时间
## 指令格式
- `@此方BOT 此方晚安`: 禁言几个小时
- `@此方BOT 此方午安`: 禁言几十分钟

View File

@ -21,7 +21,9 @@ async def make_sleep(event: GroupMessageEvent, bot: Bot, duration: int):
minutes = (duration // 60) % 60
hours = duration // 3600
message = f" 晚安!已获得 {hours} 小时 {minutes} 分钟 {seconds}的睡眠💤"
t1 = f"{hours} 小时 {minutes} 分钟 {seconds}"
message = f" 好好睡吧!奖励你 {t1}的睡眠💤"
message = UniMessage.at(str(event.user_id)).text(message)
await message.send(target=event, bot=bot)