summary refs log tree commit diff stats
path: root/lingo.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2022-12-14 00:45:26 +0000
committerStar Rauchenberger <fefferburbia@gmail.com>2022-12-14 00:45:26 +0000
commite2835e2726ec6059373174f9cfaa4824165e59ec (patch)
tree52db87f762f6867f5f31f899e57aff4448b64b5b /lingo.cpp
parent80a544add942f182f385f56e61fe357e9365f99e (diff)
downloadlingo-e2835e2726ec6059373174f9cfaa4824165e59ec.tar.gz
lingo-e2835e2726ec6059373174f9cfaa4824165e59ec.tar.bz2
lingo-e2835e2726ec6059373174f9cfaa4824165e59ec.zip
Added emote reaction when answer length is wrong
Diffstat (limited to 'lingo.cpp')
-rw-r--r--lingo.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lingo.cpp b/lingo.cpp index 809685e..7fa0374 100644 --- a/lingo.cpp +++ b/lingo.cpp
@@ -404,6 +404,10 @@ public:
404 } 404 }
405 } else { 405 } else {
406 bot_->message_add_reaction(event.msg.id, event.msg.channel_id, "❌"); 406 bot_->message_add_reaction(event.msg.id, event.msg.channel_id, "❌");
407 if (canonical_attempt.size() != canonical_answer.size())
408 {
409 bot_->message_add_reaction(event.msg.id, event.msg.channel_id, "🍂");
410 }
407 } 411 }
408 } 412 }
409 }); 413 });