qq机器人搭建
PS:基于tp5.1,必须安装redis,phantomJs。支持把Q群做为一个代理群
例子 { "host": "0.0.0.0", "port": 5700, "use_http": true, "ws_host": "", "ws_port": "", "use_ws": false, "ws_reverse_url": "", "ws_reverse_api_url": "", "ws_reverse_event_url": "", "ws_reverse_reconnect_interval": 3000, "ws_reverse_reconnect_on_code_1000": true, "use_ws_reverse": false, "post_url": "http://127.0.0.1:80/qqbot/Index/index", "access_token": "", "secret": "", "post_message_format": "string", "serve_data_files": false, "update_source": "github", "update_channel": "stable", "auto_check_update": false, "auto_perform_update": false, "show_log_console": false, "log_level": "error", "enable_rate_limited_actions":true, "rate_limit_interval":1000 }
例 DocumentRoot "your demo local" <Directory "your demo local"> Options -Indexes -FollowSymLinks +ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted
ps:admin,agent模块内容很少,现在主要的精力放在qqbot模块
www WEB部署目录(或者子目录)
├─application 应用目录
│ ├─common 公共模块目录(可以更改)
│ ├─admin 总后台模块目录,目前几乎没有功能
│ ├─agent 代理后台,少许的功能
│ ├─qqbot 机器人模块
│ │ └─service 核心业务类
│ │ └─command 指令存放区域
│ └─lib
│ └─enum 项目配置区
│ └─QqBot.php 机器人配置类
│
├─采集.bat
命令行:php think qqbot_caiji start 或者双击 采集.bat
在Q群输入“帮助” 或者 “!帮助” 即可
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。