From be9fe9d0513a18d417d4ed9cb0dedf10ce72a75a Mon Sep 17 00:00:00 2001 From: HonusBot Date: Sat, 15 May 2021 23:09:35 +0200 Subject: [PATCH] Add viu --- honusbot-cli.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/honusbot-cli.sh b/honusbot-cli.sh index 0ca2ea7..6bf39b2 100755 --- a/honusbot-cli.sh +++ b/honusbot-cli.sh @@ -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}