jia/cmd/jia.go

24 lines
348 B
Go
Raw Permalink Normal View History

2020-06-30 09:23:49 +00:00
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()
2021-05-02 19:56:01 +00:00
fmt.Printf("%+v\n", config.Events)
2020-07-27 09:41:00 +00:00
// Start receiving messages
2021-05-02 19:39:41 +00:00
fmt.Printf("Listening on port %d\n", config.Port)
2020-07-27 09:41:00 +00:00
jia.StartServer(config)
2020-06-30 09:23:49 +00:00
}