This commit is contained in:
SmileRex
2025-01-24 10:38:30 +03:00
parent c20348036d
commit 65350adcba
2 changed files with 13 additions and 13 deletions

View File

@@ -2,7 +2,6 @@ package main
import (
"bot/src/controllers"
"bot/src/handlers"
"bot/src/models"
"log"
"os"
@@ -28,6 +27,7 @@ func config() models.Config {
return config
}
func main() {
cfg := config()
pref := tele.Settings{
@@ -42,11 +42,12 @@ func main() {
}
dc := controllers.NewDB(cfg)
dataHandler := handlers.NewHandlers(dc)
dickController := controllers.NewDick(dc)
duelController := controllers.NewDuel(b, dc)
b.Handle("/dick", dataHandler.Dick)
b.Handle("/top_dick", dataHandler.TopDick)
b.Handle("/dick", dickController.Dick)
b.Handle("/top_dick", dickController.TopDick)
b.Handle("/duel", duelController.StartMatch)
b.Handle("/accept", duelController.AcceptMatch)