From 7e0812e77ab1d8b063090866acdfa8f631bea361 Mon Sep 17 00:00:00 2001 From: sammyette Date: Sun, 22 Dec 2024 11:57:28 -0400 Subject: [PATCH] feat: add midnight detection function --- moonlight/midnight_clua.go | 6 ++++++ moonlight/midnight_golua.go | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 moonlight/midnight_clua.go create mode 100644 moonlight/midnight_golua.go diff --git a/moonlight/midnight_clua.go b/moonlight/midnight_clua.go new file mode 100644 index 0000000..f0aa0c1 --- /dev/null +++ b/moonlight/midnight_clua.go @@ -0,0 +1,6 @@ +//go:build midnight +package moonlight + +func IsMidnight() bool { + return true +} diff --git a/moonlight/midnight_golua.go b/moonlight/midnight_golua.go new file mode 100644 index 0000000..bfd7b68 --- /dev/null +++ b/moonlight/midnight_golua.go @@ -0,0 +1,6 @@ +//go:build !midnight +package moonlight + +func IsMidnight() bool { + return false +}