feat: add midnight detection function

midnight-edition
sammyette 2024-12-22 11:57:28 -04:00
parent 40d3933009
commit 7e0812e77a
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,6 @@
//go:build midnight
package moonlight
func IsMidnight() bool {
return true
}

View File

@ -0,0 +1,6 @@
//go:build !midnight
package moonlight
func IsMidnight() bool {
return false
}