summaryrefslogtreecommitdiff
path: root/src/wasp-twitch.el
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2025-01-03 14:41:11 -0500
committerLLLL Colonq <llll@colonq>2025-01-03 14:41:11 -0500
commit83f9a7b14bfb2fc90044d2809485b1c0a39cc841 (patch)
tree01472f7164fa1e3e5c9eae0570d71ff1b52ce751 /src/wasp-twitch.el
parent6628a49b953842a3c358bdf3f5e45284480db0c3 (diff)
Update
Diffstat (limited to 'src/wasp-twitch.el')
-rw-r--r--src/wasp-twitch.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/wasp-twitch.el b/src/wasp-twitch.el
index a9d3084b..419d8fc9 100644
--- a/src/wasp-twitch.el
+++ b/src/wasp-twitch.el
@@ -485,12 +485,15 @@ CALLBACK will be passed the winner when the poll concludes."
(defun w/twitch-badges-sigil (badges)
"Return the sigil character BADGES for the current user."
- (let ((equity (alist-get :equity w/user-current))
- (name (s-downcase w/user-current-name)))
+ (let* ((equity (alist-get :equity w/user-current))
+ (name (s-downcase w/user-current-name))
+ (max-stars (w/aoc-max-stars))
+ (aoc-stars (w/aoc-lookup-stars name)))
(apply
#'s-concat
(-non-nil
(list
+ (when (and aoc-stars (>= aoc-stars max-stars)) "🎄")
(when (-contains? badges "broadcaster/1") "(it me)")
(when (-contains? badges "moderator/1") "⚔")
(when (-contains? badges "artist-badge/1") "🖌ïļ")
@@ -514,7 +517,7 @@ CALLBACK will be passed the winner when the poll concludes."
((s-equals? name "tyumici") "ðŸĪŒ")
;; clone is lord ((s-equals? name "liquidcake1") "")
;; ((s-equals? name "loufbread_") "")
- ;; ((s-equals? name "yellowberryhn") "")
+ ((s-equals? name "yellowberryhn") "ðŸŠī")
;; ((s-equals? name "maradyne_") "")
;; ((s-equals? name "sampie159") "")
;; ((s-equals? name "zamielpayne") "")