基于 xbot 实现微信关键词自动回复
项目链接
https://github.com/xbot-org/demo_keyword_reply
使用
先配置好 xbot 的配置如下,并运行
CALLBACK_URL=http://127.0.0.1:5678 SECRET=xxx PORT=5557
讯享网
clone 代码
讯享网git clone https://github.com/xbot-org/demo_keyword_reply.git cd demo_keyword_reply
运行此服务 php -S localhost:5678
效果图

代码
代码很简单,这里贴一下
<?php $jsonString = file_get_contents("php://input"); $msg = json_decode($jsonString, true); switch ($msg['type']) {

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/45528.html