mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
synced 2025-06-18 20:36:49 +00:00
migration onto 2.1.1
This commit is contained in:
FSMBot/src/main/kotlin
HelloBot/src/main/kotlin
KeyboardsBot/KeyboardsBotLib/src/commonMain/kotlin
RandomFileSenderBot/src/main/kotlin
ResenderBot/ResenderBotLib/src/commonMain/kotlin
SlotMachineDetectorBot/src/main/kotlin
gradle.properties@ -17,9 +17,9 @@ suspend fun main(args: Array<String>) {
|
||||
|
||||
if (diceType == SlotMachineDiceAnimationType) {
|
||||
val result = dice.calculateSlotMachineResult() ?: return@onDice
|
||||
bot.reply(it, "${result.leftReel}|${result.centerReel}|${result.rightReel}")
|
||||
reply(it, "${result.leftReel}|${result.centerReel}|${result.rightReel}")
|
||||
} else {
|
||||
bot.reply(it, "There is no slot machine dice in message")
|
||||
reply(it, "There is no slot machine dice in message")
|
||||
}
|
||||
}
|
||||
}.join()
|
||||
|
Reference in New Issue
Block a user