G1sms/shell/sms_AIDE.sh

48 lines
1.4 KiB
Bash
Executable File

#!/bin/bash
################################################################################
# Author: Fred (support@qo-op.com)
# Version: 0.1
# License: AGPL-3.0 (https://choosealicense.com/licenses/agpl-3.0/)
################################################################################
MY_PATH="`dirname \"$0\"`" # relative
MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
if [[ -f $MY_PATH/.profile ]]; then
source $MY_PATH/.profile
elif [[ -f $MY_PATH/../.profile ]]; then
source $MY_PATH/../.profile
else
echo -e "${c_red}Le .profile n'existe pas$c_"
exit 1
fi
#source $GPATH/shell/tata.sh || echo "pas trouvé"
source $GPATH/shell/init.sh
source $GPATH/shell/functions.sh
[[ $1 == "chat" ]] && echo "Bonjours chat" && exit 0
log "X sms_AIDE.sh ($1=phone)"
sms_INIT_ACCOUNT "$1" "NOSMS"
MESS="N Pseudo : Création Portefeuille rattaché à Pseudo
S : Synchro Solde
P 06nnnnnnnn 300 : Payer 300 à 06nnnnnnnn
U G1/DU/LOVE : Unité
"
# Send response SMS
sms_SEND "$1" "$MESS"
MESS="EMAIL moi@email : Email pour commande G1Billets
BILL n : Recevoir 6 G1Billets remplis de n LOVE"
sms_SEND "$1" "$MESS"
MESS="VIR 50 Pseudo : Virer 50 à Pseudo (membre ou Portefeuille SMS)
REC 50 Dest S 4 : Virer 50 à Dest, 4 Semaines (J/S/M/A)
Contact : $ADMINPSEUDO ($ADMINPHONE) - https://g1sms.fr"
sms_SEND "$1" "$MESS"
log "END sms_AIDE.sh"
log "~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
exit