php - 在聊天小部件中找不到 botman 聊天机器人错误 404 页面
问题描述
我使用botman
框架开发了一个聊天机器人,它在 localhost 上运行良好。将其上传到 cpanel 聊天小部件后会出现404 page not found
. 谁能帮我解决这个问题我无法找到解决方案。在这里你可以看到错误https://abhishekjaiswal.in/
routes/botman.php
<?php
use App\Http\Controllers\BotManController;
use App\Conversations;
$botman = resolve('botman');
$botman->hears('hi|hello|good morning',
BotManController::class.'@startConversation');
$botman->hears('Who are you', function($bot) {
$bot->reply('I am a chatbot');
});
$botman->hears('ok|okay|hmm|great', BotManController::class.'@KnowMore');
$botman->fallback(function($bot) {
$bot->reply('Sorry, I did not understand what you saying. Dont feel embarass just
start with hi.');
});
解决方案
推荐阅读
- macos - 使用 zsh 拆分语义版本号
- node.js - 覆盖所需的依赖模块导出函数
- node.js - API 调用过多导致错误“发送后无法设置标头”
- linux - 或 Sed 中的条件
- maven - Maven 常见依赖 多个项目将jar排除在war中
- php - 如何在扩展会话类codeigniter 3中编写数据库查询
- jquery-select2 - 如何获取自动生成的select2的id
- excel - 借助用户表单中的组合框选择特定列
- ruby-on-rails - Webpacker manifest.json 在 docker-compose up --build 之后恢复到旧的资产引用
- java - Java Spring Security 5 + MySQL 数据库:编码密码看起来不像 BCrypt