dashboard/cmd/panel/main.go
2019-10-20 14:11:54 +01:00

23 lines
417 B
Go

package main
import (
"github.com/TicketsBot/GoPanel/app/http"
"github.com/TicketsBot/GoPanel/cache"
"github.com/TicketsBot/GoPanel/config"
"github.com/TicketsBot/GoPanel/database"
"math/rand"
"time"
)
func main() {
rand.Seed(time.Now().UnixNano() % 3497)
config.LoadConfig()
database.ConnectToDatabase()
cache.Client = cache.NewRedisClient()
go cache.Client.ListenForMessages()
http.StartServer()
}