From b0980b660caa822f2e7654dfdd4f514e0c1b63a3 Mon Sep 17 00:00:00 2001 From: troido Date: Sun, 5 Apr 2020 13:15:55 +0200 Subject: added interact command --- asciifarmclient/commandhandler.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'asciifarmclient/commandhandler.py') diff --git a/asciifarmclient/commandhandler.py b/asciifarmclient/commandhandler.py index ec5baa3..99d8b5a 100644 --- a/asciifarmclient/commandhandler.py +++ b/asciifarmclient/commandhandler.py @@ -38,7 +38,9 @@ class CommandHandler: "j": self.json, "ijson": self.ijson, "ij": self.ijson, - "hy": self.hy + "hy": self.hy, + "interact": self.interact, + "q": self.interact } self.evalArgs = { @@ -147,4 +149,6 @@ class CommandHandler: def ijson(self, text): self.input(json.loads(text)) + def interact(self, arg): + self.input(["interact", [None, "north", "south", "east", "west"], arg]) -- cgit