Added script (#2)

Reviewed-on: phoenix/twilio_sender#2
Co-authored-by: kdeng00 <kundeng00@pm.me>
Co-committed-by: kdeng00 <kundeng00@pm.me>
This commit is contained in:
kdeng00
2025-06-19 22:40:30 +00:00
committed by phoenix
parent f3562b3300
commit 564caabff6
4 changed files with 34 additions and 6 deletions
+24
View File
@@ -0,0 +1,24 @@
#!/bin/bash
root_dir=`pwd`
echo "Root directory: $root_dir"
if [[ ! -d "$root_dir" ]]; then
echo "Root directory does not exist. Exiting"
exit
fi
config_path="twilio_details.json"
numbers_part="0"
numbers_path="numbers/numbers-$numbers_part.json"
type_message="json"
messages_path="messages/message-$numbers_part.json"
send_message="True"
echo "Changing directory to $root_dir"
cd $root_dir
./twilio_sender "$config_path" "$numbers_path" "$messages_path"
echo "Done"