jia/cmd/jia.go
2021-05-02 15:56:01 -04:00

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)
}