-
Notifications
You must be signed in to change notification settings - Fork 0
/
doge.sh
44 lines (40 loc) · 2.32 KB
/
doge.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env bash
clear
if [ -z ${1+x} ]; then
printf "No arguments supplied\n\n";
printf "Usage Example: bash doge.sh 333\n\n";
exit 0;
fi
stock_url="crypto/DOGE"
stock_value=$(curl -s https://robinhood.com/${stock_url} | grep -oP 'span aria-atomic="true" aria-label="\K[^"]+')
stock_value_number=$(echo ${stock_value} | sed 's/\$//')
stock_equity=$(echo "scale=4; ${1}*${stock_value_number}" | bc)
printf "\n"
printf "$(tput setaf 0)$(tput setab 7)"
printf " ▄ ▄ \n"
printf " ▌▒█ ▄▀▒▌ \n"
printf " ▌▒▒█ ▄▀▒▒▒▐ \n"
printf " ▐▄█▒▒▀▀▀▀▄▄▄▀▒▒▒▒▒▐ \n"
printf " ▄▄▀▒▒▒▒▒▒▒▒▒▒▒█▒▒▄█▒▐ \n"
printf " ▄▀▒▒▒░░░▒▒▒░░░▒▒▒▀██▀▒▌ \n"
printf " ▐▒▒▒▄▄▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▀▄▒▌ \n"
printf " ▌░░▌█▀▒▒▒▒▒▄▀█▄▒▒▒▒▒▒▒█▒▐ \n"
printf " ▐░░░▒▒▒▒▒▒▒▒▌██▀▒▒░░░▒▒▒▀▄▌ \n"
printf " ▌░▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░▒▒▒▒▌ \n"
printf "▌▒▒▒▄██▄▒▒▒▒▒▒▒▒░░░░░░░░▒▒▒▐ \n"
printf "▐▒▒▐▄█▄█▌▒▒▒▒▒▒▒▒▒▒░▒░▒░▒▒▒▒▌\n"
printf "▐▒▒▐▀▐▀▒▒▒▒▒▒▒▒▒▒▒▒▒░▒░▒░▒▒▐ \n"
printf " ▌▒▒▀▄▄▄▄▄▄▒▒▒▒▒▒▒▒░▒░▒░▒▒▒▌ \n"
printf " ▐▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒░▒▒▄▒▒▐ \n"
printf " ▀▄▒▒▒▒▒▒▒▒▒▒▒▒▒░▒░▒▄▒▒▒▒▌ \n"
printf " ▀▄▒▒▒▒▒▒▒▒▒▒▄▄▄▀▒▒▒▒▄▀ \n"
printf " ▀▄▄▄▄▄▄▀▀▀▒▒▒▒▒▄▄▀ \n"
printf " ▀▀▀▀▀▀▀▀▀▀▀▀ \n"
printf "$(tput sgr 0)"
printf "\n\n"
printf "Dogecoin: ${stock_value}\n"
printf "Dogecoin Shares: ${1}\n"
printf "Equity: \$${stock_equity}\n"
printf "\n\n"
printf "$(tput setaf 2)such wallet$(tput sgr 0) $(tput setaf 4)very blockchain$(tput sgr 0) $(tput setaf 5)good boi$(tput sgr 0)"
printf "\n\n"