summaryrefslogtreecommitdiff
path: root/src/wasp-user-badges.el
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2026-08-18 03:04:31 -0400
committerLLLL Colonq <llll@colonq>2026-08-18 03:04:31 -0400
commit23cc4ab7b5695f77ffd15f5ee5e7cc414237642f (patch)
tree07ac5ee48cc3773664fda24b227618422b468ec9 /src/wasp-user-badges.el
parentf04ada478f4bfa5637744876f00ff56f85dcf552 (diff)
Diffstat (limited to 'src/wasp-user-badges.el')
-rw-r--r--src/wasp-user-badges.el14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/wasp-user-badges.el b/src/wasp-user-badges.el
index 4c7fdb93..2144074c 100644
--- a/src/wasp-user-badges.el
+++ b/src/wasp-user-badges.el
@@ -76,6 +76,10 @@
"Give badge BID to user UID."
(w/db-sadd (s-concat "user:badges:" uid) bid))
+(defun w/badge-revoke (uid bid)
+ "Revoke badge BID from user UID."
+ (w/db-srem (s-concat "user:badges:" uid) bid))
+
(defun w/badge-custom-equity-text (user text)
"Give badge TEXT to USER."
(let ((bid (w/uuid)))
@@ -98,6 +102,12 @@
(lambda (uid)
(w/badge-grant uid "equitylord"))))
+(defun w/badge-undefault-equity (user)
+ "Give USER the default equity badge."
+ (w/user-id-from-name user
+ (lambda (uid)
+ (w/badge-revoke uid "equitylord"))))
+
;; (w/badge-create-icon "equitylord" "Equity Lord" "This user holds Equity Lordship status, entitling them to a vote at the shareholders' meeting." (w/asset "badges/equitylord.png"))
;; (w/badge-create-text "themale" "MALE" "This user is known as \"The Male\" by some." "πŸ§β€β™‚οΈ")
;; (w/badge-create-icon "slime" "Slime" "This user is \"slime\"." (w/asset "badges/slime.png"))
@@ -150,7 +160,6 @@
;; (w/badge-custom-equity-text "colinahscopy_" "⚜")
;; (w/badge-default-equity "eighteyedsixwingedseraph")
;; (w/badge-default-equity "a_tension_span")
-;; (w/badge-default-equity "tomaterr")
;; (w/badge-custom-equity-icon "realnaesten" (w/twitch-emote-path "emotesv2_4d2812c659c14c64a9a4044c3eff6d30"))
;; (w/badge-default-equity "fmega")
;; (w/badge-default-equity "cr4zyk1tty")
@@ -164,6 +173,9 @@
;; (w/badge-custom-equity-text "bigbookofbug" "(βœΏβ•Ήβ—‘β•Ή)οΎ‰β˜†.q β‚€:*゚")
;; (w/badge-custom-equity-text "peetseater" "πŸ•")
;; (w/badge-custom-equity-text "remblanc" "πŸ’Έ")
+;; (w/badge-custom-equity-text "pwfff" "β˜‰")
+;; (w/badge-custom-equity-text "tomaterr" "πŸ…")
+;; (w/badge-custom-equity-text "slowpvke" "Ξ¦")
(provide 'wasp-user-badges)
;;; wasp-user-badges.el ends here