for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace FondBot\Conversation;
use FondBot\Contracts\Activator;
use FondBot\Events\MessageReceived;
class FallbackIntent extends Intent
{
/**
* Intent activators.
*
* @return Activator[]
*/
public function activators(): array
return [];
}
public function run(MessageReceived $message): void
$text = collect([
'Sorry, I could not understand you.',
'Oops, I can\'t do that 😔',
'My developer did not teach to do that.',
])->random();
$this->reply($text);