summaryrefslogtreecommitdiff
path: root/src/wasp-event-handlers.el
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2024-11-26 03:23:31 -0500
committerLLLL Colonq <llll@colonq>2024-11-26 03:23:31 -0500
commit0b95071fe628d91238549b062961e724088d3b8b (patch)
treeb4cf3ae960e0b52ed014ab4ba423fda1075e5d60 /src/wasp-event-handlers.el
parent6e3c47b1ad746f0891592a97cc6ffb6e0280adbb (diff)
Update :4
Diffstat (limited to 'src/wasp-event-handlers.el')
-rw-r--r--src/wasp-event-handlers.el15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/wasp-event-handlers.el b/src/wasp-event-handlers.el
index 88ab5161..10bee34b 100644
--- a/src/wasp-event-handlers.el
+++ b/src/wasp-event-handlers.el
@@ -38,6 +38,10 @@
(cons '(monitor twitch chat incoming) #'w/twitch-handle-incoming-chat)
(cons '(monitor twitch redeem incoming) #'w/twitch-handle-redeem)
(cons
+ '(frontend redeem incoming)
+ (lambda (msg)
+ (w/twitch-handle-redeem-api msg)))
+ (cons
'(monitor twitch raid)
(lambda (msg)
(let ((user (car msg)))
@@ -67,7 +71,7 @@
'(monitor twitch subscribe)
(lambda (msg)
(let ((user (car msg)))
- ;; (w/thank-sub user)
+ (w/thank-sub user)
(w/model-region-word "skin" (format "thanks_%s_" user))
(w/friend-respond (format "%s just subscribed to the stream" user))
(w/write-chat-event (format "New subscriber: %s" user)))))
@@ -76,10 +80,11 @@
(lambda (msg)
(let ((user (car msg))
(subs (cadr msg)))
- (w/model-region-word "skin" (format "thanks_%s_" user))
- (w/friend-respond (format "%s just gifted subscriptions" user))
- (w/write-chat-event (format "%s gifted %d subs" user subs))
- (soundboard//play-monsterkill subs))))
+ (unless (s-equals? user "lcolonq")
+ (w/model-region-word "skin" (format "thanks_%s_" user))
+ (w/friend-respond (format "%s just gifted subscriptions" user))
+ (w/write-chat-event (format "%s gifted %d subs" user subs))
+ (soundboard//play-monsterkill subs)))))
(cons
'(monitor twitch poll begin)
(lambda (_)