move moonshark to core
This commit is contained in:
parent
0a18167df7
commit
cac1b8cf92
|
@ -1,4 +1,4 @@
|
||||||
package main
|
package core
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
3
main.go
3
main.go
|
@ -6,6 +6,7 @@ import (
|
||||||
"os/signal"
|
"os/signal"
|
||||||
"syscall"
|
"syscall"
|
||||||
|
|
||||||
|
"git.sharkk.net/Sky/Moonshark/core"
|
||||||
"git.sharkk.net/Sky/Moonshark/core/logger"
|
"git.sharkk.net/Sky/Moonshark/core/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -13,7 +14,7 @@ func main() {
|
||||||
logger.InitGlobalLogger(logger.LevelDebug, true, false)
|
logger.InitGlobalLogger(logger.LevelDebug, true, false)
|
||||||
logger.Server("Moonshark is starting to prowl 🦈")
|
logger.Server("Moonshark is starting to prowl 🦈")
|
||||||
|
|
||||||
server, err := NewMoonshark("config.lua")
|
server, err := core.NewMoonshark("config.lua")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Fatal("Failed to initialize server: %v", err)
|
logger.Fatal("Failed to initialize server: %v", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user