Constructor
new MessageParser(actionProvider)
Constructor for the MessageParser class.
Parameters:
| Name | Type | Description |
|---|---|---|
actionProvider |
object | The action provider that contains the methods for handling different types of user input. |
- Source:
Methods
parse(message)
Parses the user's message and triggers corresponding actions.
The method converts the message to lowercase and checks for key phrases to determine the response.
Parameters:
| Name | Type | Description |
|---|---|---|
message |
string | The user's message to the chatbot. |
- Source: