renaming
This commit is contained in:
9
main.go
9
main.go
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user