summaryrefslogtreecommitdiff
path: root/asciifarmclient/commandhandler.py
diff options
context:
space:
mode:
authortroido <troido@protonmail.com>2021-12-30 21:21:16 +0100
committertroido <troido@protonmail.com>2021-12-30 21:21:16 +0100
commit331ab7d810c1ed660150d18eef5938d124342bc1 (patch)
treec5b8e594c366ae938c1e3509944a5c3f42ed68e4 /asciifarmclient/commandhandler.py
parent2327b2e838789cb2ce0c81a8f5e8922f3fae1800 (diff)
add describe command
Diffstat (limited to 'asciifarmclient/commandhandler.py')
-rw-r--r--asciifarmclient/commandhandler.py4
1 files changed, 4 insertions, 0 deletions
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])