bruh....youretarded

This commit is contained in:
Shihaam Abdul Rahman 2021-05-12 06:25:45 +05:00
parent c685a36b4b
commit 0c4cb4cb07

View File

@ -26,10 +26,10 @@ curl -s -b $COOKIE $BML_URL/profile > /dev/null
while true; do while true; do
CHECKDIFF1=$(echo $HISTORY | wc -c) CHECKDIFF1=$(echo $HISTORY | wc -c)
HISTORY=$(curl -s -b $COOKIE $BML_URL/account/$BML_ACCOUNTID/history/today | jq -r '.payload | .history | .[]') HISTORY=$(curl -s -b $COOKIE $BML_URL/account/$BML_ACCOUNTID/history/today | jq -r '.payload | .history | .[]')
CHECKDIFF2=$(echo $HISTORY | wc -c)
if [ "$CHECKDIFF1" = "$CHECKDIFF2" ] if [ "$CHECKDIFF1" = "$CHECKDIFF2" ]
then then
echo nothing new..checking again echo nothing new..checking again
CHECKDIFF2=$(echo $HISTORY | wc -c)
else else
TRANSFERAMOUNT=$(echo $HISTORY | jq -r .amount | head -n1) TRANSFERAMOUNT=$(echo $HISTORY | jq -r .amount | head -n1)
TRANFERFROM=$(echo $HISTORY | jq -r .narrative3 | head -n1) TRANFERFROM=$(echo $HISTORY | jq -r .narrative3 | head -n1)