This commit is contained in:
SmileRex
2025-01-23 05:41:18 +03:00
parent 1970f09678
commit e7fc474edd
2 changed files with 4 additions and 4 deletions

BIN
bot Normal file

Binary file not shown.

View File

@@ -44,16 +44,16 @@ func (s *DuelController) StartMatch(c tele.Context) error {
return c.Send(fmt.Sprintf("Дуэль уже началась!\nИгрок: %s\nСтавка: %d", s.PlayerOne.FName, s.Summ))
}
if c.Text() == "/duel" {
return c.Send("Используйте /duel <сумма> для начала дуэли!")
}
s.Inited = true
s.PlayerOne.ID = c.Sender().ID
s.PlayerOne.FName = c.Sender().FirstName
user := s.DC.GetUser(s.PlayerOne.ID)
if c.Text() == "/duel" {
return c.Send("Используйте /duel <сумма> для начала дуэли!")
}
a := strings.Split(c.Text(), "/duel ")[1]
summ, err := strconv.Atoi(a)
if err != nil {