Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/usr/bin/env sh
if [ "$1" != "" ]; then
sBatchList=""
sBatchMessage="$3"
while IFS=, read col1 col2
do
sBatchList="$sBatchList $col1"
done < $2
echo sending batch message to: $sBatchList
sh ./signal-cli -u "$1" send -m "$sBatchMessage" $sBatchList
else
echo \\nThis script requires \"Signal Command Line Interface\"
echo More info @ https://github.com/AsamK/signal-cli
echo Downloads @ https://github.com/AsamK/signal-cli/releases
echo Once downloaded and installed, please place this script in the "bin" directory\\n
echo usage: ./signal-batch yourSignalNumber yourBatchList \"Your message goes here!\"
echo example: ./signal-batch +12125551212 mygrouplist.txt \"This is the broadcast message you requested!\"\\n
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment