Last active
May 14, 2023 08:50
-
-
Save n8fr8/9a4b693a6985ba97d5ce4632143f8994 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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