From ac50bc09b3a8a107f028968255e0897b6cc5a64c Mon Sep 17 00:00:00 2001 From: Michael Kopinsky Date: Mon, 4 Jun 2018 15:13:17 -0400 Subject: [PATCH 1/2] Spelling --- conversations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conversations.md b/conversations.md index 2ad92a5..1d754be 100644 --- a/conversations.md +++ b/conversations.md @@ -93,7 +93,7 @@ public function askEmail() ## Asking Questions -BotMan gives you two ways to ask your users questions. The straight forward aproach is simply using a string as a question: +BotMan gives you two ways to ask your users questions. The straight forward approach is simply using a string as a question: ```php // ...inside the conversation object... From 78ff1862c7becb1626e400a0fa3704e99d0c5487 Mon Sep 17 00:00:00 2001 From: Michael Kopinsky Date: Mon, 4 Jun 2018 15:19:23 -0400 Subject: [PATCH 2/2] Spelling --- middleware.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/middleware.md b/middleware.md index 4e53444..aa2dc8f 100644 --- a/middleware.md +++ b/middleware.md @@ -30,7 +30,7 @@ The `received` middleware can be used to manipulate all incoming messaging servi ### Example middleware class -This exampe `received` middleware takes the incoming message and adds some extra information to it, which can be used later throughout your chatbot application. +This example `received` middleware takes the incoming message and adds some extra information to it, which can be used later throughout your chatbot application. As multiple middleware classes can be applied, make sure to return a call to `$next` with the incoming message as a parameter. ```php @@ -71,7 +71,7 @@ Since the `captured` middleware needs to be applied to all incoming requests, it ### Example middleware class -This exampe `captured` middleware takes the incoming message and adds some extra information to it, which can be used later throughout your chatbot application. +This example `captured` middleware takes the incoming message and adds some extra information to it, which can be used later throughout your chatbot application. As multiple middleware classes can be applied, make sure to return a call to `$next` with the incoming message as a parameter. ```php @@ -111,7 +111,7 @@ The `matching` middleware defines how the messages will be matched. It receives ### Example middleware class -This exampe `matching` middleware takes the incoming message and checks not only for the regular expression match - but also checks that the message was sent from a specific user. Every BotMan commands under this middleware will only be heard, when the correct pattern is sent **and** the correct user sends the message. Otherwise BotMan will not call the command callback. +This example `matching` middleware takes the incoming message and checks not only for the regular expression match - but also checks that the message was sent from a specific user. Every BotMan commands under this middleware will only be heard, when the correct pattern is sent **and** the correct user sends the message. Otherwise BotMan will not call the command callback. ```php use BotMan\BotMan\Interfaces\Middleware\Matching; @@ -155,7 +155,7 @@ The `heard` middleware works similar to how the `received` middleware works. It ### Example middleware class -This exampe `heard` middleware takes the incoming message and adds some extra information to it, which can be used later throughout your chatbot application. +This example `heard` middleware takes the incoming message and adds some extra information to it, which can be used later throughout your chatbot application. As multiple middleware classes can be applied, make sure to return a call to `$next` with the incoming message as a parameter. ```php @@ -196,7 +196,7 @@ You can also manipulate the outgoing payload data before it gets sent to the mes ### Example middleware class -This exampe `sending` middleware simply logs the outgoing payload data into a file called log.txt. +This example `sending` middleware simply logs the outgoing payload data into a file called log.txt. ```php use BotMan\BotMan\Interfaces\Middleware\Sending;