Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update: MiraiGo替换为LagrangeGo #2541

Open
wants to merge 83 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
642c746
feat(actions): add Check and Close Invalid PR
fumiama Oct 1, 2023
6ac7a8f
Merge pull request #2470 from Mrs4s/dev
fumiama Oct 9, 2023
5cbbcda
Update README.md
Mrs4s Oct 9, 2023
8607542
Update README.md
Mrs4s Oct 9, 2023
a5923f1
Merge pull request #2526 from Mrs4s/dev
fumiama May 9, 2024
6819c45
remove guild related content
Linwenxuan04 Apr 17, 2024
7d524a7
remove qsign related content
Linwenxuan04 Apr 17, 2024
54d7c05
remove guild feed related content
Linwenxuan04 Apr 17, 2024
f47cd4b
rebase to lagrange
Linwenxuan04 Apr 17, 2024
6e511da
rebase to lagrange
Redmomn Apr 17, 2024
2d5bfc6
fix: some cqcode
Redmomn Apr 23, 2024
726b561
fix: client.uin
Redmomn Apr 23, 2024
7d7639d
fix: api.go converter.go
Redmomn Apr 24, 2024
b58d17e
fix: move binary package from MiraiGo
Redmomn Apr 28, 2024
9862860
fix: move binary package from MiraiGo
Redmomn Apr 28, 2024
31f4806
update LagrangeGo version && fix some binary pkt
Redmomn Jun 17, 2024
f297e54
fix: ojbk
Redmomn Jun 20, 2024
d272d10
update
Redmomn Jun 27, 2024
022406f
Feat/NewQRCodeImpl
DarkRRb Jun 27, 2024
bd0fa9c
refactor: 使用lagrangego的binary库
Redmomn Jun 28, 2024
beda86d
feat: update protocol version,支持接收戳一戳
Redmomn Jul 16, 2024
b5486fe
chore: 修复过时的linter配置
Redmomn Jul 17, 2024
66d913d
chore: 更新各个action的版本
Redmomn Jul 17, 2024
47e64df
refactor: 优化登录流程
Redmomn Jul 17, 2024
2941176
refactor: 删除不必要的配置项
Redmomn Jul 17, 2024
4b42bc3
update: update LagrangeGo to 203a7c
Redmomn Jul 17, 2024
c5d8e93
update: 支持更多的api和event
Redmomn Jul 24, 2024
beb6914
update: update LagrangeGo to e0989512caeb
Redmomn Jul 25, 2024
9732ce3
fix: 修复语音发不出去的bug
Redmomn Jul 25, 2024
a71444d
feat: 支持处理好友申请
Redmomn Aug 18, 2024
fca88ba
fix: 改动一些小细节,更新lgrgo
Redmomn Aug 19, 2024
68b069f
fix: 修复语音无法播放以及私聊无法发送
Redmomn Aug 25, 2024
926cd87
feat: 支持发送短视频,删除部分多余代码
Redmomn Aug 29, 2024
62c65a4
feat: 补一个check media
Redmomn Aug 29, 2024
6c64ded
update: 升级lgrgo版本,完善视频封面
Redmomn Aug 29, 2024
8ca8f05
update README
Redmomn Sep 1, 2024
603ddaa
update: 升级LagrangeGo版本
pk5ls20 Sep 11, 2024
99bec8d
fix: 无法发送语音
Redmomn Sep 11, 2024
23f18a0
fix: 添加群文件操作和一些细节部分
Redmomn Oct 4, 2024
1d79458
feat: 群荣誉信息
Redmomn Oct 5, 2024
03e1b07
feat: 获取和设置群精华消息
Redmomn Oct 5, 2024
f0e72f9
feat: 群公告相关
Redmomn Oct 5, 2024
cd6954d
feat: 获取合并转发消息
Redmomn Oct 5, 2024
8fe525c
feat: 发送合并转发和撤回私聊
Redmomn Oct 5, 2024
c573513
feat: 添加部分事件,增加获取群成员信息项
Redmomn Oct 5, 2024
676998c
fix: 上游更新
Redmomn Oct 5, 2024
5aceb79
fix:重复创建设备信息 (#5)
Azusa-Yuan Oct 6, 2024
70a49f9
fix:at处理不完善 (#6)
Azusa-Yuan Oct 6, 2024
6427ee2
lint: make lint happy
Redmomn Oct 6, 2024
81b4bf8
fix: 更新上游,优化获取群系统消息
Redmomn Oct 6, 2024
dc49256
chore: action增加写权限
Redmomn Oct 6, 2024
8899038
fix: 完善api
Redmomn Oct 7, 2024
b844665
fix: api.CQSetGroupAdmin (#7)
icarus-ai Oct 8, 2024
bec496c
fix: 修复某些情况下无法解析语音的问题?
Redmomn Oct 10, 2024
426f8c1
fix: 缺失的module/api (#11)
RF-Tar-Railt Nov 7, 2024
a5efbab
fix: 修复无法使用url发送图片
Redmomn Nov 8, 2024
7738611
fix: 修复无法使用url发送图片
Redmomn Nov 8, 2024
a518cc9
update: update LagrangeGo
Redmomn Nov 9, 2024
3a8f94c
refactor: 优化文件判断逻辑
Redmomn Nov 9, 2024
17033c6
update LagrangeGo -> v0.1.1
Redmomn Nov 9, 2024
5aca41c
chore: 更新goreleaser配置文件
Redmomn Nov 9, 2024
e6906e1
chore: make lint happy
Linwenxuan04 Nov 11, 2024
00220b5
chore: make lint happy #2
Linwenxuan04 Nov 11, 2024
faa0c02
fix: 获取转发消息记录
Redmomn Nov 10, 2024
28a74bc
feat: 支持密码登录(x)
Redmomn Nov 12, 2024
5e208ed
chore: update lint
Redmomn Nov 12, 2024
78467f6
make lint happy
Redmomn Nov 12, 2024
be805fd
update api
Redmomn Nov 12, 2024
cf86eab
fix: 视频和图片缓存
Redmomn Nov 14, 2024
7ab0de5
fix: login.SubmitCaptcha & fmt & update (#14)
icarus-ai Nov 15, 2024
0edb2a7
feat: 临时会话消息
Redmomn Nov 14, 2024
f1950e2
fix: 视频缓存
Redmomn Nov 14, 2024
e7ea3f0
update README
Redmomn Nov 15, 2024
c70e33e
feat: ocr,获取at次数,群打卡,设置群头像
Redmomn Nov 26, 2024
f9217aa
feat: 补充陌生人信息
Redmomn Nov 27, 2024
b2b98cc
feat: 支持更多的api
Redmomn Nov 28, 2024
acf7701
feat: statistics
Redmomn Nov 28, 2024
7fdb04c
chore: update linter settings
Redmomn Nov 28, 2024
7727819
feat: 临时会话和新增好友事件
Redmomn Nov 28, 2024
d89d21d
chore: update workflow (#17)
Redmomn Nov 28, 2024
494692a
feat: 网络状态诊断
Redmomn Nov 29, 2024
ab371c1
refactor: 同步更改字段
Redmomn Nov 29, 2024
192b8c8
style: 排序imports
Redmomn Nov 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/build_docker_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
contents: read

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set time zone
uses: szenius/[email protected]
Expand All @@ -38,7 +38,7 @@ jobs:
# password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to GHCR
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
Expand All @@ -62,14 +62,14 @@ jobs:
type=semver,pattern={{major}}

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Build and push
id: docker_build
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
goarch: "386"
fail-fast: true
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Go environment
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
cache: true
go-version: '1.20'
Expand All @@ -43,7 +43,7 @@ jobs:
export LD_FLAGS="-w -s -X github.com/Mrs4s/go-cqhttp/internal/base.Version=${COMMIT_ID::7}"
go build -o "output/$BINARY_NAME" -trimpath -ldflags "$LD_FLAGS" .
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ !github.head_ref }}
with:
name: ${{ matrix.goos }}_${{ matrix.goarch }}
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/golint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,19 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Go environment
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '1.20'
cache: false

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6
with:
version: latest
skip-cache: true

- name: Tests
run: |
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
jobs:
goreleaser:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
run: |
Expand All @@ -16,7 +18,7 @@ jobs:
git checkout "${{ github.ref }}"

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '1.20'

Expand Down
19 changes: 11 additions & 8 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
linters-settings:
errcheck:
ignore: fmt:.*,io/ioutil:^Read.*
ignoretests: true
exclude-functions:
- fmt:.*
- io/ioutil:^Read.*

goimports:
local-prefixes: github.com/Mrs4s/go-cqhttp
Expand Down Expand Up @@ -51,17 +52,15 @@ linters:
run:
# default concurrency is a available CPU number.
# concurrency: 4 # explicitly omit this value to fully utilize available resources.
deadline: 5m
timeout: 5m
issues-exit-code: 1
skip-dirs:
- db
- cmd/api-generator
- internal/encryption
tests: true

# output configuration options
output:
format: "colored-line-number"
formats:
- format: colored-line-number
path: stdout
print-issued-lines: true
print-linter-name: true
uniq-by-line: true
Expand All @@ -72,3 +71,7 @@ issues:
exclude-use-default: false
exclude:
- "Error return value of .((os.)?std(out|err)..*|.*Close|.*Seek|.*Flush|os.Remove(All)?|.*print(f|ln)?|os.(Un)?Setenv). is not check"
exclude-dirs:
- db
- cmd/api-generator
- internal/encryption
6 changes: 4 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
env:
- GO111MODULE=on
version: 2

before:
hooks:
- go mod tidy
Expand Down Expand Up @@ -69,13 +69,15 @@ changelog:

archives:
- id: binary
format: tar.gz
builds:
- win
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
format_overrides:
- goos: windows
format: binary
- id: nowin
format: tar.gz
builds:
- nowin
- win
Expand Down
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

# go-cqhttp

_✨ 基于 [Mirai](https://github.com/mamoe/mirai) 以及 [MiraiGo](https://github.com/Mrs4s/MiraiGo) 的 [OneBot](https://github.com/howmanybots/onebot/blob/master/README.md) Golang 原生实现 ✨_
_✨ 基于 [Lagrange.Core](https://github.com/KonataDev/Lagrange.Core) 以及 [LagrangeGo](https://github.com/LagrangeDev/LagrangeGo) 的 [OneBot](https://github.com/howmanybots/onebot/blob/master/README.md) Golang 原生实现 ✨_


</div>
Expand Down Expand Up @@ -42,10 +42,6 @@ _✨ 基于 [Mirai](https://github.com/mamoe/mirai) 以及 [MiraiGo](https://git
<a href="https://github.com/Mrs4s/go-cqhttp/blob/master/CONTRIBUTING.md">参与贡献</a>
</p>

## 重要信息
由于QQ官方针对协议库的围追堵截, 不断更新加密方案, 我们已无力继续维护此项目.
建议Bot开发者尽快迁移至无头NTQQ项目 -> https://github.com/Mrs4s/go-cqhttp/issues/2471

## 兼容性
go-cqhttp 兼容 [OneBot-v11](https://github.com/botuniverse/onebot-11) 绝大多数内容,并在其基础上做了一些扩展,详情请看 go-cqhttp 的文档。

Expand Down
Loading