This commit is contained in:
HonusBot 2021-05-15 23:09:35 +02:00
parent 3ac6d76297
commit be9fe9d051

View File

@ -17,8 +17,8 @@ if [ -x "$(command -v viu)" ]; then
fi
if [ download_url_to_stdin = true ]; then
display_command="xargs --max-args=1 --no-run-if-empty curl -s --location ${display_command}"
display_command="| xargs --max-args=1 --no-run-if-empty curl -s --location ${display_command}"
fi
curl -s --location --request POST 'https://api.ignuranza.net/remote-command-api/command' --header 'Content-Type: application/json' --header 'User-Agent: RcAPI/1.2' --data-raw "{\"botName\": \"AstralNetworkHonusBot\", \"botPassword\": \"KixdujXD37898ZSy893\", \"command\": \"${command}\", \"replyToUserId\": 0, \"senderUserId\": 1237252783, \"chatId\": 1237252783, \"queryText\": \"$args\", \"rawSingleArgument\": false}" | jq -r ".imageUrl" | ${display_command}
curl -s --location --request POST 'https://api.ignuranza.net/remote-command-api/command' --header 'Content-Type: application/json' --header 'User-Agent: RcAPI/1.2' --data-raw "{\"botName\": \"AstralNetworkHonusBot\", \"botPassword\": \"KixdujXD37898ZSy893\", \"command\": \"${command}\", \"replyToUserId\": 0, \"senderUserId\": 1237252783, \"chatId\": 1237252783, \"queryText\": \"$args\", \"rawSingleArgument\": false}" | jq -r ".imageUrl" ${display_command}