diff options
| author | troido <troido@protonmail.com> | 2018-07-28 17:59:46 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2018-07-28 17:59:46 +0200 |
| commit | d5e2d9798e01a6b2b65c995407e7d1f6f1a91983 (patch) | |
| tree | 72592f7020e4d38c6b5d8b2d3c9a8a4c216ef093 | |
| parent | 538adede0ccf859643d0381e6320b7ddd7e50125 (diff) | |
setup exchanging posts (trading and crafting)
| -rw-r--r-- | asciifarm/client/commandhandler.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/asciifarm/client/commandhandler.py b/asciifarm/client/commandhandler.py index 9a0ff44..d34f367 100644 --- a/asciifarm/client/commandhandler.py +++ b/asciifarm/client/commandhandler.py @@ -16,6 +16,7 @@ class CommandHandler: "input": self.input, "move": self.move, "say": self.say, + "pick": self.pick, "chat": self.chat, "log": self.log, "do": self.do, @@ -54,9 +55,13 @@ class CommandHandler: def say(self, text): self.input(["say", text]) + def pick(self, option): + self.input(["pick", option]) + def chat(self, text): self.send(["chat", text]) + def log(self, text): self.client.log(text) |
