From 7f3c46dd8af5b4a247e64afa3e0ec0c49abbafb3 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Sat, 10 Apr 2021 15:29:56 +0200 Subject: [PATCH] Factorio: Allow connecting and entering slot name in one command; /connect server_address slot_name --- FactorioClient.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/FactorioClient.py b/FactorioClient.py index ada9ce38..38e500be 100644 --- a/FactorioClient.py +++ b/FactorioClient.py @@ -48,6 +48,11 @@ class FactorioCommandProcessor(ClientCommandProcessor): return True return False + def _cmd_connect(self, address: str = "", name="") -> bool: + """Connect to a MultiWorld Server""" + self.ctx.auth = name + return super(FactorioCommandProcessor, self)._cmd_connect(address) + class FactorioContext(CommonContext): command_processor = FactorioCommandProcessor