Update sweebot.py

This commit is contained in:
Nova Cat 2025-03-11 23:44:54 -07:00
parent e9f6f63466
commit 79f05aa61b

View file

@ -315,6 +315,9 @@ def multiline(text, channel):
times += 1 times += 1
from sys import exit from sys import exit
def restart(): def restart():
if cntr != None:
cntr.kill()
cntr.remove()
irc.irc_socket.close() irc.irc_socket.close()
irc2.irc_socket.close() irc2.irc_socket.close()
irc3.irc_socket.close() irc3.irc_socket.close()
@ -688,7 +691,7 @@ while True:
if cntr == None: if cntr == None:
irc.send_irc(channel, nick + ":[OK] No container is loaded yet.") irc.send_irc(channel, nick + ":[OK] No container is loaded yet.")
else: else:
cntr.stop() cntr.kill()
cntr.remove() cntr.remove()
cntr = None cntr = None
irc.send_irc(channel, nick + ":[OK] Done.") irc.send_irc(channel, nick + ":[OK] Done.")