This commit is contained in:
shoopea
2021-11-08 22:54:32 +08:00
parent 38a1d8a898
commit 93de4325fd
2 changed files with 4 additions and 8 deletions

4
bot.go
View File

@@ -82,13 +82,11 @@ func botPause(m *tb.Message) {
} else {
bot.SendChat(bot.Config.ChatID, "Game already paused.")
}
botPlayers(m)
return
}
}
}
}
botPlayers(m)
bot.SendChat(bot.Config.ChatID, "You are not playing and cannot pause the game.")
return
}
@@ -105,13 +103,11 @@ func botUnpause(m *tb.Message) {
} else {
bot.SendChat(bot.Config.ChatID, fmt.Sprintf("Cannot unpause : %s", srv.NeedPauseReason()))
}
botPlayers(m)
return
}
}
}
}
botPlayers(m)
bot.SendChat(bot.Config.ChatID, "You are not playing and cannot unpause the game.")
return
}