-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from amtoaer/dev
- Loading branch information
Showing
20 changed files
with
470 additions
and
448 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: release | ||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
jobs: | ||
release: | ||
name: publish releases | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Golang | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: "1.17.5" | ||
- name: Build and Release | ||
run: make | ||
- name: Upload to release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: build/release.zip | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
build/ |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
NAME=bing-bong | ||
|
||
.PHONY: clean | ||
|
||
all: clean release | ||
|
||
release: build | ||
zip -q -r build/release.zip build/ | ||
|
||
dev: | ||
go run main.go | ||
|
||
build: | ||
GOARCH=amd64 GOOS=linux go build -trimpath -ldflags '-w -s' -o build/$(NAME) | ||
cp config.yml build/ | ||
|
||
clean: | ||
rm -rf ./build |
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
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,12 +1,16 @@ | ||
botType: qq # 机器人类型 | ||
botType: "qq" # 机器人类型 | ||
qq: | ||
account: "123456" # QQ账号 | ||
webSocket: "ws://127.0.0.1:6700/" #cq-http的正向ws地址 | ||
accessToken: "123456" # cq-http的token | ||
dbAddress: "localhost:3306" # 数据库链接(目前仅支持mysql) | ||
dbUser: root # 数据库账号 | ||
dbPass: root # 数据库密码 | ||
dbName: bingbong # 数据库名 | ||
dbType: "sqlite" # 数据库类型 | ||
mysql: | ||
dbAddress: "localhost:3306" # 数据库链接(目前仅支持mysql) | ||
dbUser: "root" # 数据库账号 | ||
dbPass: "root" # 数据库密码 | ||
dbName: "bingbong" # 数据库名 | ||
sqlite: | ||
path: "./sqlite.db" # 数据库位置 | ||
proxy: "" # 请求rss地址时使用的代理(例:http://localhost:7890,留空表示无代理) | ||
checkTime: 5 # 检测rss订阅的时间间隔(单位分钟) | ||
checkRange: 5 # 检测rss订阅的最大条数(程序会检测rss地址的前min(checkRange,len(feeds))条消息) |
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
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
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
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
Oops, something went wrong.