27 lines
649 B
PHP
27 lines
649 B
PHP
<?php
|
|
|
|
namespace App\Controllers\Chatbot;
|
|
|
|
use App\Helpers\ChatbotHelper;
|
|
use BotMan\BotMan\Messages\Conversations\Conversation;
|
|
use BotMan\BotMan\Messages\Outgoing\Question;
|
|
use BotMan\BotMan\Messages\Outgoing\Actions\Button;
|
|
use BotMan\Drivers\Web\WebDriver;
|
|
|
|
class LoginToContiueConversation extends Conversation
|
|
{
|
|
|
|
public function run()
|
|
{
|
|
$this->bot->userStorage()->delete();
|
|
$this->bot->types(); // Typing indicator for the first message
|
|
sleep(0.5); // Delay
|
|
$this->showLoginMessage();
|
|
}
|
|
|
|
protected function showLoginMessage()
|
|
{
|
|
$this->say("Kindly Login to use the chatbot");
|
|
}
|
|
}
|