summaryrefslogtreecommitdiff
path: root/sw-bot/src
diff options
context:
space:
mode:
authorJoffrey Bion <joffrey.bion@booking.com>2020-05-24 14:07:18 +0200
committerJoffrey Bion <joffrey.bion@booking.com>2020-05-24 14:07:18 +0200
commite45a95ead2ce5f78ef99b223a44991a112bf1432 (patch)
tree314834c61ef8b54d317aa9b441ddfab535c8299a /sw-bot/src
parentKeep card visible when used to upgrade wonder (diff)
downloadseven-wonders-e45a95ead2ce5f78ef99b223a44991a112bf1432.tar.gz
seven-wonders-e45a95ead2ce5f78ef99b223a44991a112bf1432.tar.bz2
seven-wonders-e45a95ead2ce5f78ef99b223a44991a112bf1432.zip
Attempt at fixing mixed content ws call
Diffstat (limited to 'sw-bot/src')
-rw-r--r--sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt4
1 files changed, 2 insertions, 2 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 9f5f2983..68d96e55 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
@@ -32,8 +32,8 @@ class SevenWondersBot(
) {
private val client = SevenWondersClient()
- suspend fun play(serverHost: String, gameId: Long) = withTimeout(botConfig.globalTimeout) {
- val session = client.connect(serverHost)
+ suspend fun play(serverUrl: String, gameId: Long) = withTimeout(botConfig.globalTimeout) {
+ val session = client.connect(serverUrl)
session.chooseName(displayName, Icon("desktop"))
session.joinGame(gameId)
session.awaitGameStart(gameId)
bgstack15