add accept duel button

This commit is contained in:
Smile Rex
2025-08-31 15:44:20 +03:00
parent 0919496792
commit a3411b733b
2 changed files with 53 additions and 24 deletions

View File

@@ -24,8 +24,8 @@ func config() models.Config {
func testConfig() models.Config {
return models.Config{
Token: "7757765456:AAFpFXhbi9XCfgRt7P3OT3F_jrBBplubWZA",
HostName: "217.12.40.237",
Token: "8301440775:AAF7j6ENql93UXB5VwrOAg7k7W3JLjMbPcU",
HostName: "quizer.space",
DbName: "test",
UserName: "root",
Password: "12641264",
@@ -57,7 +57,9 @@ func main() {
dickController := controllers.NewDick(dc)
duelController := controllers.NewDuel(b, dc)
bonusController := controllers.NewBonusController(b, dc)
acceptButton := tele.Btn{Unique: controllers.AcceptDuelButtonUnique}
b.Handle(&acceptButton, duelController.AcceptMatch)
b.Handle("/dick", dickController.Dick)
b.Handle("/top_dick", dickController.TopDick)