devrabie / conversation
php Conversation
v1.0.0
2023-11-29 14:48 UTC
Requires
- ext-redis: *
This package is not auto-updated.
Last update: 2024-09-19 17:07:27 UTC
README
描述
这个包提供了使用Redis处理对话数据的应用程序接口。
安装
可以使用Composer安装此包
bash composer require devrabie\Conversation
使用
使用 Conversation
类来处理对话数据。以下是一些使用示例
- 检查是否存在特定标识符的命令:
$exists = Conversation::iS($id);
- ** 更新特定标识符的状态和命令:
Conversation::Update_is($id, $Command, $txt, $Status);
- ** 停止特定标识符的对话:
Conversation::stop($id);
** 获取特定标识符的命令:
$command = Conversation::getCommand($id);
5. 获取特定标识符的状态:
$status = Conversation::getStatus($id);
6. 获取特定标识符的备注:
$notes = Conversation::getnotes($id);
7. 更新特定标识符和状态的详细信息
Conversation::Updatedeta($txt, $id, $Status);
8. 获取特定标识符和状态的详细信息
$deta = Conversation::getdeta($Status, $id);
9. 获取msid
$msid = Conversation::getmsid();
10. 更新msid
Conversation::Updatemsid($id);
11. 获取dbid
$dbid = Conversation::getdbid();
许可
此包采用MIT许可证。