update pause/unpause msg

This commit is contained in:
shoopea
2021-11-08 14:19:52 +08:00
parent 3194cb33db
commit 7db13a764c
3 changed files with 6 additions and 6 deletions

2
bot.go
View File

@@ -84,7 +84,6 @@ func botPause(m *tb.Message) {
}
if !srv.Status.Paused {
srv.Pause()
bot.SendChat(bot.Config.ChatID, "Game paused.")
} else {
bot.SendChat(bot.Config.ChatID, "Game already paused.")
}
@@ -104,7 +103,6 @@ func botUnpause(m *tb.Message) {
}
if !srv.NeedPause() {
srv.Unpause()
bot.SendChat(bot.Config.ChatID, "Game unpaused.")
} else {
bot.SendChat(bot.Config.ChatID, fmt.Sprintf("Cannot unpause : %s", srv.NeedPauseReason()))
}