File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,14 @@ echo -e "\nFetching..."
2020
2121uid=" $( curl -s https://api.roblox.com/users/get-by-username? username=${name} | jq ' .Id' ) "
2222
23- if [ ${uid} -lt 1 ]
23+ data=" $( curl -s https://users.roblox.com/v1/users/${uid} ) "
24+
25+ if [ " $( echo ${data} | jq ' .name' | tr --delete ' \"' ) " == " null" ]
2426then
25- echo " No users with this name were found. Check your spelling and try again!"
27+ echo -e " Failed!\n\nNo users with this name were found. Check your spelling and try again!\n "
2628 exit
2729fi
2830
29- data=" $( curl -s https://users.roblox.com/v1/users/${uid} ) "
3031echo " Done!"
3132
3233cat << EOF
@@ -40,4 +41,4 @@ Creation date: $(echo ${data} | jq ".created" | tr --delete '\"')
4041Past usernames: $( curl -s https://users.roblox.com/v1/users/${uid} /username-history | jq ' .data[] | .[]' | tr --delete ' \"' | tr ' \n' ' ' )
4142Profile: https://roblox.com/users/${uid} /profile
4243
43- EOF
44+ EOF
You can’t perform that action at this time.
0 commit comments