From 331ab7d810c1ed660150d18eef5938d124342bc1 Mon Sep 17 00:00:00 2001 From: troido Date: Thu, 30 Dec 2021 21:21:16 +0100 Subject: add describe command --- asciifarmclient/commandhandler.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'asciifarmclient/commandhandler.py') diff --git a/asciifarmclient/commandhandler.py b/asciifarmclient/commandhandler.py index 59b8a2c..1213d71 100644 --- a/asciifarmclient/commandhandler.py +++ b/asciifarmclient/commandhandler.py @@ -19,6 +19,7 @@ class CommandHandler: self.commands = { "input": self.input, "move": self.move, + "describe": self.describe, "say": self.say, "pick": self.pick, "chat": self.chat, @@ -72,6 +73,9 @@ class CommandHandler: def move(self, direction): self.input(["move", direction]) + + def describe(self, direction): + self.input(["describe", direction]) def say(self, text): self.input(["say", text]) -- cgit