update pause/unpause msg
This commit is contained in:
2
bot.go
2
bot.go
@@ -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()))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user