summaryrefslogtreecommitdiff
path: root/asciifarmclient/commandhandler.py
diff options
context:
space:
mode:
authortroido <troido@protonmail.com>2020-04-06 14:18:49 +0200
committertroido <troido@protonmail.com>2020-04-06 14:18:49 +0200
commitc50243865062c0e2096d8ed3fe364b3b2ba61953 (patch)
treea8743cfa4d188d61d2051a79df9a5b33acc51530 /asciifarmclient/commandhandler.py
parentb0980b660caa822f2e7654dfdd4f514e0c1b63a3 (diff)
add /buy shortcut
Diffstat (limited to 'asciifarmclient/commandhandler.py')
-rw-r--r--asciifarmclient/commandhandler.py3
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 = {