From 23cc4ab7b5695f77ffd15f5ee5e7cc414237642f Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Tue, 18 Aug 2026 03:04:31 -0400 Subject: Update --- src/wasp-user-badges.el | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/wasp-user-badges.el') 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 -- cgit v1.3.1