-
Notifications
You must be signed in to change notification settings - Fork 15
Config
Dandanla edited this page Aug 4, 2021
·
4 revisions
本插件需要配置go-cqhttp以及pepperbot 即同时运行go-cqhttp以及pepperbot
1.访问官方文档下载对应版本
2.命令行运行go-cqhttp可执行文件
3.选择1和4,即开启HTTP和反向ws
4.打开yml配置文件,HTTP端口默认5700不变
5.修改yml文件,配置ws端口和pepperbot端口一致
- ws-reverse:
# 反向WS Universal 地址
# 注意 设置了此项地址后下面两项将会被忽略
universal: ws://127.0.0.1:14323/cqhttp/ws
6.再次运行
pip install pepperbot
#引入相关库
from pepperbot.main import *
from pepperbot.models.sender import Sender