PHP code example of kaecyra / chatbot
1. Go to this page and download the library: Download kaecyra/chatbot library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kaecyra / chatbot example snippets
public function start() {
$this->hook('event_name', [$this, 'hook_method']);
}
public function start() {
$this->roles = [
'administrator' => [
'base.module.control'
],
'staff' => [
'base.report'
]
];
}