added golang http url routing

This commit is contained in:
2024-04-14 16:06:32 +02:00
parent fd4d1b1ed7
commit a0269f37f8
9 changed files with 64 additions and 25 deletions

View File

@@ -19,6 +19,7 @@ import (
"github.com/joho/godotenv"
"github.com/sirupsen/logrus"
"github.com/vaporvee/acecore/log2webhook"
"github.com/vaporvee/acecore/web"
)
var (
@@ -70,6 +71,7 @@ func main() {
logrus.Error(err)
}
logrus.Infof("Bot is now running as '%s'!", app.Bot.Username)
go web.HostRoutes(app.Bot.ID.String())
sc := make(chan os.Signal, 1)
signal.Notify(sc, syscall.SIGINT, syscall.SIGTERM, os.Interrupt)