dabo-prep.sh

This commit is contained in:
olli 2024-05-30 17:30:03 +02:00
parent 5b09665af1
commit 225a95efa1

View File

@ -1,31 +1,9 @@
#!/bin/bash #!/bin/bash
. /etc/bash/gaboshlib.include . /dabo/dabo-prep.sh
export LANGUAGE="en_US"
### CONFIG ###
BASEPATH=/dabo/htdocs
g_tries=13
g_tries_delay=23
g_wget_opts="--timeout 10 --tries=2 --user-agent='Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36'"
### FUNCTIONS ###
for bashfunc in $(find ${BASEPATH}/../functions -type f -name "*.sh")
do
. "$bashfunc"
done
### MAIN ### ### MAIN ###
g_echo_warn "STARTING DABO BOT $0"
g_signal-notify "STARTING DABO BOT $0"
# prepare directories
mkdir -p ${BASEPATH}/botdata/asset-histories
mkdir -p ${BASEPATH}/botdata/trade-histories
cd ${BASEPATH}/botdata
touch firstloop touch firstloop
export FULL_LOOP=1 export FULL_LOOP=1