mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-11-28 13:46:42 +01:00
correct shutown
This commit is contained in:
4
bot.py
4
bot.py
@@ -395,8 +395,8 @@ class Bot:
|
|||||||
time.sleep(1.0)
|
time.sleep(1.0)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print('Stay weird!')
|
print('Stay weird!')
|
||||||
os.kill(os.getpid(), signal.SIGKILL)
|
os.kill(os.getpid(), signal.SIGTERM)
|
||||||
exit(1)
|
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
bot = Bot
|
bot = Bot
|
||||||
|
|||||||
Reference in New Issue
Block a user