From e9f6f634663d61f983df9a0858408fd2067cbdbb Mon Sep 17 00:00:00 2001
From: swee <meow@swee.codes>
Date: Tue, 11 Mar 2025 21:43:47 -0700
Subject: [PATCH] Update sweebot.py

---
 sweebot.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sweebot.py b/sweebot.py
index 62a1bb2..49de5b1 100644
--- a/sweebot.py
+++ b/sweebot.py
@@ -677,7 +677,7 @@ while True:
                                 if cntr == None:
                                     cntr = dock.containers.run('alpine:edge', "/bin/ash", detach=True, tty=True)
                                 print("Executing...")
-                                _, stream = cntr.exec_run(cmd=["ash", "-c", " ".join(command[1:])], tty=True)
+                                _, stream = cntr.exec_run(cmd=["timeout", "10", "ash", "-c", " ".join(command[1:])], tty=True)
                                 multiline(replace_color_codes(stream.decode()), channel)
                             except Exception as ex:
                                 irc.send_irc(channel, nick + ":[ERR] Traceback:")