Skip to content

Instantly share code, notes, and snippets.

@n8fr8
Last active May 14, 2023 08:50
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save n8fr8/9a4b693a6985ba97d5ce4632143f8994 to your computer and use it in GitHub Desktop.
Save n8fr8/9a4b693a6985ba97d5ce4632143f8994 to your computer and use it in GitHub Desktop.
#!/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