parent
79f05aa61b
commit
ea0ee5a934
1 changed files with 1 additions and 1 deletions
|
@ -680,7 +680,7 @@ while True:
|
||||||
if cntr == None:
|
if cntr == None:
|
||||||
cntr = dock.containers.run('alpine:edge', "/bin/ash", detach=True, tty=True)
|
cntr = dock.containers.run('alpine:edge', "/bin/ash", detach=True, tty=True)
|
||||||
print("Executing...")
|
print("Executing...")
|
||||||
_, stream = cntr.exec_run(cmd=["timeout", "10", "ash", "-c", " ".join(command[1:])], tty=True)
|
_, stream = cntr.exec_run(cmd=["timeout", "10", "ash", "-c", " ".join(command[1:])], tty=False)
|
||||||
multiline(replace_color_codes(stream.decode()), channel)
|
multiline(replace_color_codes(stream.decode()), channel)
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
irc.send_irc(channel, nick + ":[ERR] Traceback:")
|
irc.send_irc(channel, nick + ":[ERR] Traceback:")
|
||||||
|
|
Loading…
Add table
Reference in a new issue