diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2022-12-09 16:11:11 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2022-12-09 16:11:11 -0500 |
commit | 1e0fa0b5b760a23a82194a2aecfd8ba3e4114eb9 (patch) | |
tree | 34a5187df6b48bb2d50788b9f195f7be13adc4b1 /lingo.cpp | |
parent | e24eb1a308928152ad35e3efa8f4dc7640e8652e (diff) | |
download | lingo-1e0fa0b5b760a23a82194a2aecfd8ba3e4114eb9.tar.gz lingo-1e0fa0b5b760a23a82194a2aecfd8ba3e4114eb9.tar.bz2 lingo-1e0fa0b5b760a23a82194a2aecfd8ba3e4114eb9.zip |
Uses custom discord emotes now
fixes #18
Diffstat (limited to 'lingo.cpp')
-rw-r--r-- | lingo.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/lingo.cpp b/lingo.cpp index 30b46ab..439bab5 100644 --- a/lingo.cpp +++ b/lingo.cpp | |||
@@ -44,6 +44,18 @@ const std::string COLOUR_EMOJIS[kColourCount] = { | |||
44 | "🟨" | 44 | "🟨" |
45 | }; | 45 | }; |
46 | 46 | ||
47 | const std::string NONE_EMOTE = "<:xx:1047267830535557180>"; | ||
48 | |||
49 | const std::string COLOUR_EMOTES[kColourCount] = { | ||
50 | "<:wt:1047262151032713267>", | ||
51 | "<:bk:1047262137082445965>", | ||
52 | "<:rd:1047262147933122560>", | ||
53 | "<:bl:1047262138202325042>", | ||
54 | "<:pr:1047262146926489691>", | ||
55 | "<:bn:1047262139187998790>", | ||
56 | "<:yw:1047262152781737986>" | ||
57 | }; | ||
58 | |||
47 | enum FilterDirection { | 59 | enum FilterDirection { |
48 | kTowardSolution, | 60 | kTowardSolution, |
49 | kTowardQuestion | 61 | kTowardQuestion |
@@ -370,11 +382,11 @@ private: | |||
370 | if (colour.has_value()) { | 382 | if (colour.has_value()) { |
371 | verbly::filter questionFilter = makeHintFilter(solution, height, *colour, kTowardQuestion); | 383 | verbly::filter questionFilter = makeHintFilter(solution, height, *colour, kTowardQuestion); |
372 | verbly::form questionPart = database_->forms(questionFilter && cleanFilter).first(); | 384 | verbly::form questionPart = database_->forms(questionFilter && cleanFilter).first(); |
373 | msg_stream << COLOUR_EMOJIS[*colour] << " " << questionPart.getText() << std::endl; | 385 | msg_stream << COLOUR_EMOTES[*colour] << " " << questionPart.getText() << std::endl; |
374 | 386 | ||
375 | admissible &= makeHintFilter(questionPart, height, *colour, kTowardSolution); | 387 | admissible &= makeHintFilter(questionPart, height, *colour, kTowardSolution); |
376 | } else { | 388 | } else { |
377 | msg_stream << "▪️" << std::endl; | 389 | msg_stream << NONE_EMOTE << std::endl; |
378 | } | 390 | } |
379 | } | 391 | } |
380 | std::string spaceless = solution.getText(); | 392 | std::string spaceless = solution.getText(); |