diff --git a/utils/misc.py b/utils/misc.py index 56f7df9..c625309 100644 --- a/utils/misc.py +++ b/utils/misc.py @@ -19,4 +19,6 @@ class Update: @staticmethod def restart_bot(): - os.execvp(sys.executable, [sys.executable, sys.argv[0]]) \ No newline at end of file + if sys.argv[1] == 'restart': + return + os.execvp(sys.executable, [sys.executable, sys.argv[0], 'restart']) \ No newline at end of file