From dc62219e281641543cad6ece532f47c79fd19b3f Mon Sep 17 00:00:00 2001 From: joffrey-bion Date: Wed, 10 Feb 2021 02:02:46 +0100 Subject: Clean games when all humans have left Resolves: https://github.com/joffrey-bion/seven-wonders/issues/113 --- sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sw-bot') 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 aff31a3f..39759fd0 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 @@ -38,6 +38,10 @@ class SevenWondersBot( private val config: BotConfig = BotConfig(), private val session: SevenWondersSession, ) { + suspend fun disconnect() { + session.disconnect() + } + suspend fun createGameWithBotFriendsAndAutoPlay( gameName: String, otherBots: List, -- cgit