diff options
Diffstat (limited to 'asciifarmclient/commandhandler.py')
| -rw-r--r-- | asciifarmclient/commandhandler.py | 6 |
1 files changed, 5 insertions, 1 deletions
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]) |
