Reworked.

This commit is contained in:
Erik C. Thauvin 2020-03-30 15:40:07 -07:00
parent 0fda50b4e1
commit 07ab869388

View file

@ -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
) )
} }
} }