mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 22:00:11 +08:00
✏️ 更改ATRI睡觉时间为凌晨1点到6点
This commit is contained in:
parent
3bec61fb78
commit
f4af5bea99
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user