Skip to content

Commit

Permalink
feat: add midnight detection function
Browse files Browse the repository at this point in the history
  • Loading branch information
TorchedSammy committed Dec 22, 2024
1 parent 40d3933 commit 7e0812e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions moonlight/midnight_clua.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
//go:build midnight
package moonlight

func IsMidnight() bool {
return true
}
6 changes: 6 additions & 0 deletions moonlight/midnight_golua.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
//go:build !midnight
package moonlight

func IsMidnight() bool {
return false
}

0 comments on commit 7e0812e

Please sign in to comment.