jia/cmd/jia.go

24 lines
346 B
Go
Raw 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()
jia.InitCron(config)
2020-07-27 09:41:00 +00:00
// Start receiving messages
fmt.Println(fmt.Sprintf("Listening on port %d", config.Port))
jia.StartServer(config)
2020-06-30 09:23:49 +00:00
}