This repository has been archived on 2023-04-13. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
CloudBot/lib/restart.sh
2012-02-28 00:34:04 -08:00

10 lines
No EOL
147 B
Bash
Executable file

#!/bin/sh
sleep 5
if [ -f ./control.sh ]; then
./control.sh restart
elif [ -f ./bot.sh ]; then
./bot.sh restart
else
./bot.py
fi
exit 0