diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2022-12-14 00:45:26 +0000 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2022-12-14 00:45:26 +0000 |
| commit | e2835e2726ec6059373174f9cfaa4824165e59ec (patch) | |
| tree | 52db87f762f6867f5f31f899e57aff4448b64b5b /lingo.cpp | |
| parent | 80a544add942f182f385f56e61fe357e9365f99e (diff) | |
| download | lingo-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.cpp | 4 |
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 | }); |
