jia/cmd/jia.go
2020-12-28 13:16:44 -05:00

23 lines
346 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()
jia.InitCron(config)
// Start receiving messages
fmt.Println(fmt.Sprintf("Listening on port %d", config.Port))
jia.StartServer(config)
}