summaryrefslogtreecommitdiff
path: root/asciifarm/client/commandhandler.py
diff options
context:
space:
mode:
Diffstat (limited to 'asciifarm/client/commandhandler.py')
-rw-r--r--asciifarm/client/commandhandler.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/asciifarm/client/commandhandler.py b/asciifarm/client/commandhandler.py
index f2e94d1..0c3027f 100644
--- a/asciifarm/client/commandhandler.py
+++ b/asciifarm/client/commandhandler.py
@@ -17,7 +17,6 @@ class CommandHandler:
self.client = client
self.commands = {
- "send": self.send,
"input": self.input,
"move": self.move,
"say": self.say,
@@ -65,11 +64,8 @@ class CommandHandler:
# Commands
- def send(self, data):
- self.client.send(data)
-
def input(self, action):
- self.send(["input", action])
+ self.client.sendInput(action)
def move(self, direction):
self.input(["move", direction])
@@ -81,7 +77,7 @@ class CommandHandler:
self.input(["pick", option])
def chat(self, text):
- self.send(["chat", text])
+ self.client.sendChat( text)
def log(self, text):