Spaces:
Sleeping
Sleeping
Thibault Duplessis commited on
Commit ·
afbd768
1
Parent(s): 9066f0d
fix !name command
Browse files- conversation.py +1 -1
- engine_wrapper.py +3 -0
conversation.py
CHANGED
|
@@ -14,7 +14,7 @@ class Conversation():
|
|
| 14 |
|
| 15 |
def command(self, line, cmd):
|
| 16 |
if cmd == "name" or cmd == "engine":
|
| 17 |
-
self.send_reply(line, self.engine.name)
|
| 18 |
|
| 19 |
def send_reply(self, line, reply):
|
| 20 |
self.xhr.chat(self.game.id, line.room, reply)
|
|
|
|
| 14 |
|
| 15 |
def command(self, line, cmd):
|
| 16 |
if cmd == "name" or cmd == "engine":
|
| 17 |
+
self.send_reply(line, self.engine.name())
|
| 18 |
|
| 19 |
def send_reply(self, line, reply):
|
| 20 |
self.xhr.chat(self.game.id, line.room, reply)
|
engine_wrapper.py
CHANGED
|
@@ -19,6 +19,9 @@ class EngineWrapper:
|
|
| 19 |
def print_stats(self):
|
| 20 |
pass
|
| 21 |
|
|
|
|
|
|
|
|
|
|
| 22 |
def quit(self):
|
| 23 |
self.engine.quit()
|
| 24 |
|
|
|
|
| 19 |
def print_stats(self):
|
| 20 |
pass
|
| 21 |
|
| 22 |
+
def name(self):
|
| 23 |
+
return self.engine.name
|
| 24 |
+
|
| 25 |
def quit(self):
|
| 26 |
self.engine.quit()
|
| 27 |
|