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)