From bf4550ef53e8994843dd44a4fea812642cfa64a7 Mon Sep 17 00:00:00 2001 From: cottongin Date: Tue, 25 Feb 2025 04:41:20 -0800 Subject: [PATCH] cleanup older files and add archive to .gitignore --- .gitignore | 1 + bot.sh | 24 ------------------------ 2 files changed, 1 insertion(+), 24 deletions(-) delete mode 100755 bot.sh diff --git a/.gitignore b/.gitignore index 92088ae..53b233b 100644 --- a/.gitignore +++ b/.gitignore @@ -30,6 +30,7 @@ env/ .config/ config*.yaml !config.yaml.example +.archive/ # Logs *.log diff --git a/bot.sh b/bot.sh deleted file mode 100755 index 40da745..0000000 --- a/bot.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash - -# Check if any arguments were provided -if [ $# -eq 0 ]; then - echo "Usage: $0 [additional configs...]" - exit 1 -fi - -while true; do - # Remove any existing restart flags before starting - rm -f .restart_flag_* - - python main.py "$@" - - # Check for any restart flags - if ls .restart_flag_* 1> /dev/null 2>&1; then - echo "Restart flag(s) found, restarting bot(s)..." - sleep 1 - continue - else - echo "Bot(s) exited without restart flag, stopping..." - break - fi -done \ No newline at end of file