diff options
| author | troido <troido@protonmail.com> | 2020-04-06 14:18:49 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-04-06 14:18:49 +0200 |
| commit | c50243865062c0e2096d8ed3fe364b3b2ba61953 (patch) | |
| tree | a8743cfa4d188d61d2051a79df9a5b33acc51530 /asciifarmclient | |
| parent | b0980b660caa822f2e7654dfdd4f514e0c1b63a3 (diff) | |
add /buy shortcut
Diffstat (limited to 'asciifarmclient')
| -rw-r--r-- | asciifarmclient/commandhandler.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/asciifarmclient/commandhandler.py b/asciifarmclient/commandhandler.py index 99d8b5a..421249c 100644 --- a/asciifarmclient/commandhandler.py +++ b/asciifarmclient/commandhandler.py @@ -40,7 +40,8 @@ class CommandHandler: "ij": self.ijson, "hy": self.hy, "interact": self.interact, - "q": self.interact + "q": self.interact, + "buy": lambda option: self.interact("buy "+option) } self.evalArgs = { |
