mirror of
https://github.com/mjsarfatti/beddu.git
synced 2025-06-26 17:08:01 +02:00
Simpler Carbon example
This commit is contained in:
parent
db9229cbd0
commit
afcb9056ec
3 changed files with 9 additions and 12 deletions
BIN
demo/carbon.png
BIN
demo/carbon.png
Binary file not shown.
Before Width: | Height: | Size: 210 KiB After Width: | Height: | Size: 185 KiB |
|
@ -2,20 +2,17 @@
|
|||
|
||||
. beddu.sh
|
||||
|
||||
line
|
||||
pen purple "Hello, I'm your IP helper, here to help you will all your IP needs."
|
||||
line
|
||||
pen purple "Hello, I'm your IP helper, here for all your IP needs!"
|
||||
|
||||
choose action "What would you like to do?" "Get my IP" "Get my location"
|
||||
choose ACTION "What would you like to do?" "Get my IP" "Get my location"
|
||||
|
||||
case "$action" in
|
||||
case "$ACTION" in
|
||||
"Get my IP")
|
||||
run --out ip curl ipinfo.io/ip
|
||||
line; pen "Your IP is $ip"
|
||||
run --out IP curl ipinfo.io/ip
|
||||
pen "Your IP is $IP"
|
||||
;;
|
||||
"Get my location")
|
||||
run --out location curl -s ipinfo.io/loc
|
||||
line; pen "Your coordinates are $location"
|
||||
"Get my LOCATION")
|
||||
run --out LOCATION curl -s ipinfo.io/loc
|
||||
pen "Your coordinates are $LOCATION"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue