-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
24 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
*.exe | ||
.vscode/launch.json | ||
plugins | ||
fortune | ||
configs | ||
jrrp | ||
bili-live.db | ||
.bot.env | ||
configs/onebot-plus.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,20 @@ | ||
# configs | ||
项目示例配置文件 | ||
配置文件读取路径为程序运行目录下的`configs`文件夹下的`onebot-plus.yaml`文件 | ||
## onebot-plus.yaml | ||
``` | ||
api: | ||
# 调用go-cqhttp的api 配置 | ||
type: http | ||
#支持三种方式 http / websocket / websocket-reverse | ||
endpoint: "http(s)://xxxxxxxx" | ||
# 当类型是websocket-reverse时,此项用于声明本服务gin的启动配置例如:`0.0.0.0:6700`或者 `127.0.0.1:6700` | ||
accessToken: "_access_token" | ||
event: | ||
type: "websocket" | ||
# websocket / websocket-reverse / http-reverse | ||
addr: "ws(s)://xxxxxx" | ||
#当类型是websocket-reverse/http-reverse时,此项用于声明本服务gin的启动配置例如:`0.0.0.0:6700`或者 `127.0.0.1:6700` | ||
accessToken: "_access_token" | ||
``` | ||
## 注意事项 | ||
如果是反向ws或者反向http,需要在go-cqhttp的配置文件中修改配置,用于连接到本服务 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
# examples | ||
示例文件 | ||
示例文件 | ||
- 执行` sh build.sh `生成可执行插件 | ||
- 修改` main.go `中的插件路径 | ||
- 执行` go run main.go `运行 |