summaryrefslogtreecommitdiff
path: root/src/wasp-twitch-redeems.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-redeems.el
parent6628a49b953842a3c358bdf3f5e45284480db0c3 (diff)
Update
Diffstat (limited to 'src/wasp-twitch-redeems.el')
-rw-r--r--src/wasp-twitch-redeems.el30
1 files changed, 19 insertions, 11 deletions
diff --git a/src/wasp-twitch-redeems.el b/src/wasp-twitch-redeems.el
index d3ab13fa..c70c0316 100644
--- a/src/wasp-twitch-redeems.el
+++ b/src/wasp-twitch-redeems.el
@@ -19,6 +19,8 @@
(require 'muzak)
(require 'muzak-wasp)
+(defvar w/twitch-redeem-sound-last 0)
+
(setf
w/twitch-redeems
(list
@@ -210,12 +212,15 @@
(lambda (user _)
(w/write-chat-event (format "%s changed the theme: rosa" user))
(w/change-theme 'ef-rosa)))
- ;; (list
- ;; "gamer" 500
- ;; (lambda (user _)
- ;; (w/write-chat-event (s-concat user "'s Gamer Sacrifice summoned an entity"))
- ;; (soundboard//play-clip "videogame.ogg")
- ;; (w/obs-activate-toggle 'thug-life)))
+ (list
+ "gamer" 500
+ (lambda (user _)
+ (let ((cur (float-time)))
+ (when (> (- cur w/twitch-redeem-sound-last) 2)
+ (w/write-chat-event (s-concat user "'s Gamer Sacrifice summoned an entity"))
+ (soundboard//play-clip "videogame.ogg")
+ (w/obs-activate-toggle 'thug-life)
+ (setq w/twitch-redeem-sound-last cur)))))
(list
"arrow" 500
(lambda (user msg)
@@ -226,11 +231,14 @@
(lambda (user _)
(w/write-chat-event (format "%s does not condone any form of copyright infringement whatsoever." user))
(w/obs-activate-toggle 'activate-nixos)))
- ;; (list
- ;; "super idol" 500
- ;; (lambda (_ _)
- ;; (w/write-chat-event "SuperIdoldexiaorongdoumeinidetianbayuezhengwudeyangguangdoumeiniyaoyanreai105Cdenididiqingchundezhen")
- ;; (soundboard//play-clip "superidololdshortstyle.ogg")))
+ (list
+ "super idol" 500
+ (lambda (_ _)
+ (let ((cur (float-time)))
+ (when (> (- cur w/twitch-redeem-sound-last) 2)
+ (w/write-chat-event "SuperIdoldexiaorongdoumeinidetianbayuezhengwudeyangguangdoumeiniyaoyanreai105Cdenididiqingchundezhen")
+ (soundboard//play-clip "superidololdshortstyle.ogg")
+ (setq w/twitch-redeem-sound-last cur)))))
(list
"hex" 500
(lambda (user inp)