Spaces:
Sleeping
Sleeping
Thibault Duplessis commited on
Commit ·
4b80d2e
1
Parent(s): adf5f6e
tweak conversation.py
Browse files- conversation.py +2 -2
conversation.py
CHANGED
|
@@ -19,9 +19,9 @@ class Conversation():
|
|
| 19 |
if cmd == "wait" and game.is_abortable():
|
| 20 |
game.abort_in(60)
|
| 21 |
self.send_reply(line, "Waiting 60 seconds...")
|
| 22 |
-
|
| 23 |
self.send_reply(line, "{} (lichess-bot v{})".format(self.engine.name(), self.version))
|
| 24 |
-
|
| 25 |
self.send_reply(line, "How to run your own bot: lichess.org/api#tag/Chess-Bot")
|
| 26 |
|
| 27 |
def send_reply(self, line, reply):
|
|
|
|
| 19 |
if cmd == "wait" and game.is_abortable():
|
| 20 |
game.abort_in(60)
|
| 21 |
self.send_reply(line, "Waiting 60 seconds...")
|
| 22 |
+
elif cmd == "name":
|
| 23 |
self.send_reply(line, "{} (lichess-bot v{})".format(self.engine.name(), self.version))
|
| 24 |
+
elif cmd == "howto":
|
| 25 |
self.send_reply(line, "How to run your own bot: lichess.org/api#tag/Chess-Bot")
|
| 26 |
|
| 27 |
def send_reply(self, line, reply):
|