mirror of
https://github.com/Llewellynvdm/CoinRate.git
synced 2024-11-26 20:16:27 +00:00
Added some arrows to messages, also made (at) the default message display
This commit is contained in:
parent
b77b427f18
commit
161c77164d
@ -311,7 +311,11 @@ function setMessage () {
|
||||
if (( "$showAB" == 1 )); then
|
||||
message="${Currency} is ${target_type} ${target_value} ${Target} at ${current_value} ${Target}"
|
||||
else
|
||||
message="${Currency} at ${current_value} ${Target}"
|
||||
if [ "${target_type}" == "above" ]; then
|
||||
message="${Currency} at ${current_value} ${Target} ▲"
|
||||
else
|
||||
message="${Currency} at ${current_value} ${Target} ▼"
|
||||
fi
|
||||
fi
|
||||
# first send to comand line
|
||||
echoTweak "${message} - ${Datetimenow} " &&
|
||||
|
@ -77,7 +77,7 @@ Getting Coin Value in Fiat Currency at set price
|
||||
example: 14000 or 14000,15000
|
||||
-b Send Notice below target value once a day
|
||||
-a Send Notice above target value once a day (default)
|
||||
-k hide the above and below from result string
|
||||
-k show the above value and below value in the result string
|
||||
|
||||
Advance options (factory option)
|
||||
======================================================
|
||||
@ -189,7 +189,7 @@ while getopts hc:C:o:v:B:A:baqtT:sS:M:lf:I:kp:P: opt; do
|
||||
AboveValue=1
|
||||
;;
|
||||
k)
|
||||
showAB=0
|
||||
showAB=1
|
||||
;;
|
||||
q)
|
||||
allowEcho=0
|
||||
|
2
main.sh
2
main.sh
@ -58,7 +58,7 @@ PercentSwitch=0
|
||||
# message settings
|
||||
send=0
|
||||
sendSwitch=2
|
||||
showAB=1
|
||||
showAB=0
|
||||
sendKey=$(TZ=":ZULU" date +"%m/%d/%Y" )
|
||||
allowEcho=1
|
||||
Telegram=0
|
||||
|
Loading…
Reference in New Issue
Block a user