mirror of
https://github.com/cjdenio/jia.git
synced 2024-11-29 02:33:40 +00:00
23 lines
346 B
Go
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)
|
|
}
|