|
@@ -9,10 +9,10 @@ |
|
|
block discarded – undo |
|
9
|
9
|
require_once '../../vendor/autoload.php'; |
|
10
|
10
|
|
|
11
|
11
|
class EchoBot extends PhpBotFramework\Bot { |
|
12
|
|
- // Override processMessage in order to send user the same message it give us. |
|
13
|
|
- protected function processMessage($message) { |
|
|
12
|
+ // Override processMessage in order to send user the same message it give us. |
|
|
13
|
+ protected function processMessage($message) { |
|
14
|
14
|
$this->sendMessage($message['text']); |
|
15
|
|
- } |
|
|
15
|
+ } |
|
16
|
16
|
} |
|
17
|
17
|
|
|
18
|
18
|
$bot = new EchoBot('YOUR_BOT_TOKEN'); |
Please login to merge, or discard this patch.