✏️ 更改ATRI睡觉时间为凌晨1点到6点

This commit is contained in:
Yiwen-Chan 2021-04-24 21:00:36 +08:00
parent 3bec61fb78
commit f4af5bea99

View File

@ -240,7 +240,7 @@ func AtriSwitch() zero.Rule {
// AtriSleep 凌晨0点到6点ATRI 在睡觉,不回应任何请求 // AtriSleep 凌晨0点到6点ATRI 在睡觉,不回应任何请求
func AtriSleep() zero.Rule { func AtriSleep() zero.Rule {
return func(ctx *zero.Ctx) bool { 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 false
} }
return true return true