summaryrefslogtreecommitdiff
path: root/cmd/nova
diff options
context:
space:
mode:
authorMatthieuCoder <matthieu@matthieu-dev.xyz>2023-01-13 22:23:19 +0400
committerMatthieuCoder <matthieu@matthieu-dev.xyz>2023-01-13 22:23:19 +0400
commitb1e17001e3fce2874e4bb1354196c90a5fd7acd0 (patch)
tree95aa49d203c37afda042befcfc8c0fd679a7e1e8 /cmd/nova
parentbca576c35e54d5505c62e42e8be416c797e84b6b (diff)
better ratelimit, new go structure and better build system
Diffstat (limited to 'cmd/nova')
-rw-r--r--cmd/nova/nova.go32
1 files changed, 32 insertions, 0 deletions
diff --git a/cmd/nova/nova.go b/cmd/nova/nova.go
new file mode 100644
index 0000000..cde4e46
--- /dev/null
+++ b/cmd/nova/nova.go
@@ -0,0 +1,32 @@
+package main
+
+import (
+ "os"
+ "os/signal"
+ "syscall"
+
+ allinone "github.com/discordnova/nova/internal/pkg/all-in-one"
+)
+
+func main() {
+ allInOne, err := allinone.NewAllInOne()
+ if err != nil {
+ panic(err)
+ }
+ err = allInOne.Start()
+ if err != nil {
+ panic(err)
+ }
+ // Wait for a SIGINT
+ c := make(chan os.Signal, 1)
+ signal.Notify(c,
+ syscall.SIGHUP,
+ syscall.SIGINT,
+ syscall.SIGTERM,
+ syscall.SIGQUIT)
+ <-c
+
+ allInOne.Stop()
+
+ println("Arret de nova all in one")
+}