new Menu_Controller(menus, texts)
Parameters:
Name | Type | Description |
---|---|---|
menus |
Object | Menus object with menus to be used in rivescript - template |
texts |
Object | Texts object with text and localization to be used in rivescript - template |
- Source:
Methods
getFacebookButtons(base_buttons, sender, page_id, data, params) → {Object}
Gets the facebook buttons object
Parameters:
Name | Type | Description |
---|---|---|
base_buttons |
Object | The base buttons object, normaly an simplyfied version of facebook button object |
sender |
String | The facebook sender id |
page_id |
String | The facebook page id |
data |
Object | The data object used for comparations, if any (Eg. userdata object) |
params |
Object | The params object to determine if a nutton will be used (an array of integers) |
- Source:
Returns:
An array of facebook formatted button objects
- Type
- Object
getFacebookMenu(menu, sender, page_id, data, params) → {Object}
Gets the facebook menu object
Parameters:
Name | Type | Description |
---|---|---|
menu |
Object | The menu object - template |
sender |
String | The facebook sender id |
page_id |
String | The facebook page id |
data |
Object | The data object used for comparations, if any (Eg. userdata object) |
params |
Object | The params object to determine if a nutton will be used (an array of integers) |
- Source:
Returns:
A facebook formatted menu object
- Type
- Object
getMenu(menu, lang) → {Object}
Gets the menu object by a given menu name and localization
Parameters:
Name | Type | Description |
---|---|---|
menu |
String | The name of the menu |
lang |
String | The language of the menu for multilanguage menus |
- Source:
Returns:
A bluebird promise menu object
- Type
- Object