Commit 2f59504e authored by Him188's avatar Him188

Simplify shuffled

parent d6e4c0ee
......@@ -59,7 +59,7 @@ internal class TIMPCBotNetworkHandler internal constructor(coroutineContext: Cor
override suspend fun login() {
TIMProtocol.SERVER_IP.sortedBy { Random.nextInt() }.forEach { ip ->
TIMProtocol.SERVER_IP.shuffled().forEach { ip ->
bot.logger.info("Connecting server $ip")
try {
withTimeout(3000) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment