mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-21 04:53:24 +00:00
feat: add midnight detection function
This commit is contained in:
parent
40d3933009
commit
7e0812e77a
6
moonlight/midnight_clua.go
Normal file
6
moonlight/midnight_clua.go
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
//go:build midnight
|
||||||
|
package moonlight
|
||||||
|
|
||||||
|
func IsMidnight() bool {
|
||||||
|
return true
|
||||||
|
}
|
6
moonlight/midnight_golua.go
Normal file
6
moonlight/midnight_golua.go
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
//go:build !midnight
|
||||||
|
package moonlight
|
||||||
|
|
||||||
|
func IsMidnight() bool {
|
||||||
|
return false
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user