summaryrefslogtreecommitdiff
path: root/sw-bot/src/main/kotlin/org/luxons
diff options
context:
space:
mode:
authorJoffrey Bion <joffrey.bion@booking.com>2020-05-22 23:17:22 +0200
committerJoffrey Bion <joffrey.bion@booking.com>2020-05-22 23:17:22 +0200
commitbfa227d537c30f108a989466caa4729e171eb63b (patch)
tree83a6b01bc3bfcc1c16d9d31dcdd21ff0c2fd77c6 /sw-bot/src/main/kotlin/org/luxons
parentUse shared constant for ws endpoint (diff)
downloadseven-wonders-bfa227d537c30f108a989466caa4729e171eb63b.tar.gz
seven-wonders-bfa227d537c30f108a989466caa4729e171eb63b.tar.bz2
seven-wonders-bfa227d537c30f108a989466caa4729e171eb63b.zip
Remove bot delays for joining the game
Diffstat (limited to 'sw-bot/src/main/kotlin/org/luxons')
-rw-r--r--sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt3
1 files changed, 0 insertions, 3 deletions
diff --git a/sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt b/sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt
index 89630b63..9f5f2983 100644
--- a/sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt
+++ b/sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt
@@ -34,11 +34,8 @@ class SevenWondersBot(
suspend fun play(serverHost: String, gameId: Long) = withTimeout(botConfig.globalTimeout) {
val session = client.connect(serverHost)
- botDelay()
session.chooseName(displayName, Icon("desktop"))
- botDelay()
session.joinGame(gameId)
- botDelay()
session.awaitGameStart(gameId)
coroutineScope {
bgstack15