From 63fe5cb6a10adf397f95924548097821d23c6f7a Mon Sep 17 00:00:00 2001 From: Believethehype Date: Wed, 29 Nov 2023 11:00:15 +0100 Subject: [PATCH] correct shutown --- bot.py | 4 ++-- main.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bot.py b/bot.py index b8687ce..2a31c4c 100644 --- a/bot.py +++ b/bot.py @@ -395,8 +395,8 @@ class Bot: time.sleep(1.0) except KeyboardInterrupt: print('Stay weird!') - os.kill(os.getpid(), signal.SIGKILL) - exit(1) + os.kill(os.getpid(), signal.SIGTERM) + def run(self): bot = Bot diff --git a/main.py b/main.py index 1943fa3..5cfe8e5 100644 --- a/main.py +++ b/main.py @@ -80,7 +80,6 @@ def run_nostr_dvm_with_local_config(): while True: time.sleep(10) except KeyboardInterrupt: - print('Stay weird!') os.kill(os.getpid(), signal.SIGKILL) exit(1)