summaryrefslogtreecommitdiff
path: root/src/wasp-twitch.el
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2025-09-16 01:34:52 -0400
committerLLLL Colonq <llll@colonq>2025-09-16 01:34:59 -0400
commit510608fdbc43947391d82c703370814aa57a454e (patch)
tree57c35f47ed5b2ce0c7eaa2a2553b0e39131475d5 /src/wasp-twitch.el
parentfe903c535211bdbeeb703e06db0da3f7c8c19b4b (diff)
Update
Diffstat (limited to 'src/wasp-twitch.el')
-rw-r--r--src/wasp-twitch.el13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/wasp-twitch.el b/src/wasp-twitch.el
index bd92b435..87977cbd 100644
--- a/src/wasp-twitch.el
+++ b/src/wasp-twitch.el
@@ -185,11 +185,14 @@
(defun w/twitch-get-user-id (user k)
"Get the ID for USER and pass it to K."
- (w/twitch-api-get
- (s-concat "/users?login=" user)
- (lambda (data)
- (let ((id (ht-get (aref (ht-get data "data") 0) "id")))
- (funcall k id)))))
+ (cond
+ ((s-equals? user "fake_test_user") (funcall k "69"))
+ (t
+ (w/twitch-api-get
+ (s-concat "/users?login=" user)
+ (lambda (data)
+ (let ((id (-some-> data (ht-get "data") (w/safe-elt 0) (ht-get "id"))))
+ (funcall k id)))))))
(defun w/twitch-get-recent-clips (userid k)
"Get clips from the last week for USERID and pass them to K."