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

This commit is contained in:
Yiwen-Chan 2021-04-24 21:00:36 +08:00
parent d535d753c3
commit fc86c213be

View File

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