mirror of
https://github.com/cjdenio/jia.git
synced 2024-11-24 08:33:40 +00:00
23 lines
348 B
Go
23 lines
348 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/ifvictr/jia/pkg/jia"
|
|
"github.com/joho/godotenv"
|
|
)
|
|
|
|
func init() {
|
|
godotenv.Load()
|
|
}
|
|
|
|
func main() {
|
|
fmt.Println("Starting Jia…")
|
|
config := jia.NewConfig()
|
|
|
|
fmt.Printf("%+v\n", config.Events)
|
|
|
|
// Start receiving messages
|
|
fmt.Printf("Listening on port %d\n", config.Port)
|
|
jia.StartServer(config)
|
|
}
|