G1sms/shell/sms_AIDE.sh

48 lines
1.4 KiB
Bash
Raw Normal View History

2019-11-27 23:43:32 +01:00
#!/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
2019-11-27 23:43:32 +01:00
log "X sms_AIDE.sh ($1=phone)"
sms_INIT_ACCOUNT "$1" "NOSMS"
2019-12-29 15:17:57 +01:00
MESS="N Pseudo : Création Portefeuille rattaché à Pseudo
S : Synchro Solde
P 06nnnnnnnn 300 : Payer 300 à 06nnnnnnnn
2019-12-21 01:25:10 +01:00
U G1/DU/LOVE : Unité
2019-12-29 15:17:57 +01:00
"
2019-11-27 23:43:32 +01:00
# Send response SMS
sms_SEND "$1" "$MESS"
2019-12-29 15:17:57 +01:00
MESS="EMAIL moi@email : Email pour commande G1Billets
BILL n : Recevoir 6 G1Billets remplis de n LOVE"
2019-11-27 23:43:32 +01:00
sms_SEND "$1" "$MESS"
2019-12-29 15:17:57 +01:00
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"
2019-11-27 23:43:32 +01:00
sms_SEND "$1" "$MESS"
log "END sms_AIDE.sh"
log "~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
exit