diff --git a/bot.sh b/bot.sh index 86e1877..3729e14 100755 --- a/bot.sh +++ b/bot.sh @@ -15,6 +15,11 @@ bot_tmpdir="/tmp/tpdnsbot/" } } +files=( "updates.txt" "sentmsgs.txt" "error.log" ) +for i in "${files[@]}"; do + touch "${bot_tmpdir}${i}" +done + exec 2>>"${bot_tmpdir}/error.log" . ./bashbot-lib/bashbot-lib.sh