fix /start

This commit is contained in:
shoopea 2021-12-29 09:21:24 +08:00
parent 564e0786b9
commit 74b535fb40
2 changed files with 5 additions and 4 deletions

1
bot.go
View File

@ -414,6 +414,7 @@ func botStart(m *tb.Message) {
} }
if m.Sender.ID != int(cfg.Telegram.AdminID) && !actuallyReady { if m.Sender.ID != int(cfg.Telegram.AdminID) && !actuallyReady {
bot.SendChat(m.Chat.ID, "Not all players are ready. Only the admin can force the start.") bot.SendChat(m.Chat.ID, "Not all players are ready. Only the admin can force the start.")
return
} }
b := make([]byte, 8) b := make([]byte, 8)

View File

@ -1,6 +1,6 @@
// Code generated by version.sh (@generated) DO NOT EDIT. // Code generated by version.sh (@generated) DO NOT EDIT.
package main package main
var githash = "86f2914" var githash = "564e078"
var buildstamp = "2021-12-28_15:02:08" var buildstamp = "2021-12-29_01:21:09"
var commits = "258" var commits = "259"
var version = "86f2914-b258 - 2021-12-28_15:02:08" var version = "564e078-b259 - 2021-12-29_01:21:09"