mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 05:30:07 +08:00
✏️ 更改ATRI睡觉时间为凌晨1点到6点
This commit is contained in:
parent
d535d753c3
commit
fc86c213be
@ -240,7 +240,7 @@ func AtriSwitch() zero.Rule {
|
||||
// AtriSleep 凌晨0点到6点,ATRI 在睡觉,不回应任何请求
|
||||
func AtriSleep() zero.Rule {
|
||||
return func(ctx *zero.Ctx) bool {
|
||||
if now := time.Now().Hour(); now < 6 {
|
||||
if now := time.Now().Hour(); now >= 1 && now < 6 {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
|
||||
Loading…
Reference in New Issue
Block a user