Answers for "make bot in php"

PHP
0

make bot in php

<?php

$botman->hears('Hello BotMan!', function($bot) {
    $bot->reply('Hello!');
    $bot->ask('Whats your name?', function($answer, $bot) {
        $bot->say('Welcome '.$answer->getText());
    });
});

$botman->listen();
Posted by: Guest on January-28-2021

Browse Popular Code Answers by Language