Last active
November 9, 2022 18:41
-
-
Save bacwyls/6a0867f7b1d78b5777d4c2cd127bda01 to your computer and use it in GitHub Desktop.
get metrics for an urbit app you are publishing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: | |
:: this is a script for reading the out the number of ships who have | |
:: a treaty for a desk you are publishing | |
:: | |
:: to run: | |
:: | |
:: change the desk name to your apps desk | |
:: copy the code to clipboard | |
:: | |
:: in dojo, type: | |
:: `=myscript '`, then paste, then type `'` and press enter | |
:: | |
:: then run this in dojo: | |
:: | |
:: :treaty +dbug state/myscript | |
:: | |
:: and the output will be the number of ships who have a treaty for the desk | |
:: NOTE: | |
:: this does not exactly reflect the number of installs? | |
:: ships seem to be added to this list for a given desk | |
:: without having downloaded the app if they just search | |
:: the host in garden | |
:: | |
:: ~bacwyl-samweg | |
:: | |
=| s=(set ship) | |
=/ desk %change-me-to-your-desk-name | |
=/ our (scot %p our.bowl) | |
=/ path [%treaty our desk ~] | |
=/ v ~(val by sup.bowl) | |
=. s | |
|- | |
?~ v s | |
?: =(q.i.v path) | |
=. s | |
(~(put in s) p.i.v) | |
$(v t.v) | |
$(v t.v) | |
~(wyt in s) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment