update
This commit is contained in:
4
bot.go
4
bot.go
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user