Skip to content

Commit

Permalink
Create entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
simeononsecurity authored Dec 7, 2023
1 parent a8c8ebd commit c52cdf0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

# Run the Python script in an infinite loop
while true; do
python ./bot.py
echo "Restarting script..."
sleep 1 # Add a small delay before restarting to avoid rapid restarts in case of immediate failures
done

0 comments on commit c52cdf0

Please sign in to comment.