summary refs log tree commit diff stats
path: root/lingo.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-06-06 17:28:26 +0000
committerStar Rauchenberger <fefferburbia@gmail.com>2023-06-06 17:28:26 +0000
commit0f19e275d250c458bbe95dced45923b8aed2cbb3 (patch)
tree00bb69524f9690a87df278acd0a6756c99376a85 /lingo.cpp
parent9c324f51cf3eb46251e4114cd3cdd7a56305f826 (diff)
downloadlingo-0f19e275d250c458bbe95dced45923b8aed2cbb3.tar.gz
lingo-0f19e275d250c458bbe95dced45923b8aed2cbb3.tar.bz2
lingo-0f19e275d250c458bbe95dced45923b8aed2cbb3.zip
React with nobell when ping is off
Diffstat (limited to 'lingo.cpp')
-rw-r--r--lingo.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lingo.cpp b/lingo.cpp index fde9383..d5e8fcb 100644 --- a/lingo.cpp +++ b/lingo.cpp
@@ -453,7 +453,10 @@ public:
453 } 453 }
454 } else { 454 } else {
455 bot_->message_add_reaction(event.msg.id, event.msg.channel_id, "❌"); 455 bot_->message_add_reaction(event.msg.id, event.msg.channel_id, "❌");
456 if (canonical_attempt.size() != canonical_answer.size()) 456 if (canonical_attempt.empty())
457 {
458 bot_->message_add_reaction(event.msg.id, event.msg.channel_id, "🔕");
459 } else if (canonical_attempt.size() != canonical_answer.size())
457 { 460 {
458 bot_->message_add_reaction(event.msg.id, event.msg.channel_id, "🍂"); 461 bot_->message_add_reaction(event.msg.id, event.msg.channel_id, "🍂");
459 } 462 }