Reworked.
This commit is contained in:
parent
0fda50b4e1
commit
07ab869388
1 changed files with 7 additions and 6 deletions
|
@ -100,20 +100,21 @@ class RockPaperScissors : AbstractModule() {
|
||||||
}
|
}
|
||||||
else -> {
|
else -> {
|
||||||
bot.action(
|
bot.action(
|
||||||
"${green(botHand.name)} ${bold(botHand.action)} ${red(botHand.name)} ~ You lose ~"
|
"${green(botHand.name)} ${bold(botHand.action)} ${red(hand.name)} ~ You lose ~"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun helpResponse(bot: Mobibot, sender: String, args: String?, isPrivate: Boolean) {
|
override fun helpResponse(bot: Mobibot, sender: String, isPrivate: Boolean) {
|
||||||
bot.send(sender, bold("To play Rock Paper Scissors:"))
|
bot.send(sender, "To play Rock Paper Scissors:", isPrivate)
|
||||||
bot.send(
|
bot.send(
|
||||||
sender,
|
sender,
|
||||||
helpIndent(
|
helpIndent(
|
||||||
"${bot.nick}: ${Hands.ROCK.name.toLowerCase()} or ${Hands.PAPER.name.toLowerCase()}"
|
"${bot.nick}: ${Hands.ROCK.name.toLowerCase()} | ${Hands.PAPER.name.toLowerCase()}"
|
||||||
+ " or ${Hands.SCISSORS.name.toLowerCase()}"
|
+ " | ${Hands.SCISSORS.name.toLowerCase()}"
|
||||||
)
|
),
|
||||||
|
isPrivate
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue