Update sweebot.py

This commit is contained in:
Nova Cat 2025-03-11 15:44:51 -07:00
parent 67ced4e7bf
commit bc8218ff9a

View file

@ -673,8 +673,10 @@ while True:
elif command[0] == "$doshell":
if len(command) > 1:
try:
print("Running container")
if cntr == None:
cntr = dock.containers.run('alpine', "/bin/ash", detach=True, tty=True)
print("Executing...")
_, stream = cntr.exec_run(cmd=" ".join(command[1:]))
multiline(stream, channel)
except Exception as ex: