bot wording

This commit is contained in:
Thibault Duplessis 2016-10-19 19:28:19 +02:00
parent 75b9ddf7f1
commit c6b968c52e

View file

@ -238,7 +238,9 @@ object User extends LilaController {
OptionFuResult(UserRepo named username) { user =>
UserRepo.lichess.flatten("Missing lichess user") flatMap { lichess =>
val decision = ~getInt("v") == 1
val text = s"Clarkey's bot says ${if (decision) "MARK" else "DO NOT mark"}"
val text =
if (decision) "Clarkey's bot would mark as engine."
else "Clarkey's bot doesn't know whether to mark as engine or not."
env.noteApi.write(user, text, lichess, true) inject Ok
}
}