๐Ÿ“ฆโž”๐Ÿฆ‹ Store and retrieve files on the Atmosphere
35
fork

Configure Feed

Select the types of activity you want to include in your feed.

dww (examples): modify emojis, fix high score triggering incorrectly

Ducky 0ba08bfe 6555083e

+9 -9
+9 -9
examples/dww.sh
··· 42 42 type="$1" 43 43 44 44 case $type in 45 - "high-score") echo "๐Ÿฅณ" ;; 46 - "upward") echo "๐Ÿ˜" ;; 47 - "steady") echo "๐Ÿ˜Š" ;; 48 - "downward") echo "๐Ÿ˜ž" ;; 45 + "high-score") echo "๐Ÿ†" ;; 46 + "upward") echo "โ†—๏ธ" ;; 47 + "steady") echo "โžก๏ธ" ;; 48 + "downward") echo "โ†˜๏ธ" ;; 49 49 *) echo "๐Ÿค”" ;; 50 50 esac 51 51 } ··· 147 147 fi 148 148 fi 149 149 150 - (( $dw_users_total > $dw_users_max )) && dw_users_max=$dw_users_total 151 - [[ $dw_dist == "."* ]] && dw_dist="0$dw_dist" 152 - 153 150 if (( $dw_users_total > $dw_users_max )); then 154 151 change_phrase="$(dww.util.get_change_phrase "high-score")" 155 - elif (( $dw_users_total == $dw_users_max )); then 152 + elif (( $dw_users_active == $dw_users_active_prev )); then 156 153 change_phrase="$(dww.util.get_change_phrase "steady")" 157 154 elif (( $dw_users_active == $dw_users_active_prev )); then 158 155 change_phrase="$(dww.util.get_change_phrase "steady")" ··· 161 158 elif (( $dw_users_active < $dw_users_active_prev )); then 162 159 change_phrase="$(dww.util.get_change_phrase "downward")" 163 160 fi 161 + 162 + (( $dw_users_total > $dw_users_max )) && dw_users_max=$dw_users_total 163 + [[ $dw_dist == "."* ]] && dw_dist="0$dw_dist" 164 164 165 165 stats_record="{ 166 166 \"cursor\": \"$dw_cursor\", ··· 293 293 } 294 294 295 295 function dww.reset() { 296 - echo "๐Ÿ—‘๏ธ Deleting stats...\n---" 296 + echo -e "๐Ÿ—‘๏ธ Deleting stats...\n---" 297 297 com.atproto.repo.deleteRecord "$_username" "$_stats_record_nsid" "self" 298 298 echo "---" 299 299 }