From b58e30d3f6f738d059f31bbd599b272082dd4179 Mon Sep 17 00:00:00 2001 From: gihyeon Date: Wed, 25 Mar 2026 20:36:25 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20/c=20=E2=86=92=20/silent-command=20(?= =?UTF-8?q?=EA=B2=8C=EC=9E=84=20=EC=BD=98=EC=86=94=20=EC=8A=A4=ED=8C=B8=20?= =?UTF-8?q?=EB=B0=A9=EC=A7=80)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit /c는 모든 명령을 게임 콘솔에 표시함 /silent-command는 동일하게 동작하되 콘솔에 표시 안 함 --- factorio_rcon.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/factorio_rcon.py b/factorio_rcon.py index f886cfd..40d3ac7 100644 --- a/factorio_rcon.py +++ b/factorio_rcon.py @@ -43,8 +43,8 @@ class FactorioRCON: self.sock = None def run(self, lua_command: str) -> str: - """Lua 명령 실행 후 결과 반환""" - cmd = f"/c {lua_command}" + """Lua 명령 실행 후 결과 반환 (silent-command로 콘솔 스팸 방지)""" + cmd = f"/silent-command {lua_command}" req_id = self._send_packet(2, cmd) # type 2 = EXECCOMMAND result = self._recv_packet() return result.get("body", "").strip()