diff options
| author | troido <troido@protonmail.com> | 2021-12-30 21:21:16 +0100 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2021-12-30 21:21:16 +0100 |
| commit | 331ab7d810c1ed660150d18eef5938d124342bc1 (patch) | |
| tree | c5b8e594c366ae938c1e3509944a5c3f42ed68e4 /asciifarmclient/commandhandler.py | |
| parent | 2327b2e838789cb2ce0c81a8f5e8922f3fae1800 (diff) | |
add describe command
Diffstat (limited to 'asciifarmclient/commandhandler.py')
| -rw-r--r-- | asciifarmclient/commandhandler.py | 4 |
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]) |
