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

chore: update workflow #2542

Closed
wants to merge 75 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
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
3a3cebb
chore: update workflow
Redmomn Nov 28, 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
Prev Previous commit
Next Next commit
refactor: 删除不必要的配置项
Redmomn committed Nov 12, 2024

Verified

This commit was signed with the committer’s verified signature.
Redmomn 脑袋里进花生了
commit 294117639e65a71254a846cc38fa8b6731810394
4 changes: 0 additions & 4 deletions internal/base/flag.go
Original file line number Diff line number Diff line change
@@ -37,9 +37,7 @@ var (
LogColorful bool // 是否启用日志颜色
FastStart bool // 是否为快速启动
AllowTempSession bool // 是否允许发送临时会话信息
UpdateProtocol bool // 是否更新协议
SignServers []config.SignServer // 使用特定的服务器进行签名
IsBelow110 bool // 签名服务器版本是否低于1.1.0及以下
HTTPTimeout int // download 超时时间
SignServerTimeout int // 签名服务器超时时间

@@ -65,7 +63,6 @@ func Parse() {
flag.StringVar(&LittleWD, "w", "", "cover the working directory")
d := flag.Bool("D", false, "debug mode")
flag.BoolVar(&FastStart, "faststart", false, "skip waiting 5 seconds")
flag.BoolVar(&UpdateProtocol, "update-protocol", false, "update protocol")
flag.Parse()

if *d {
@@ -91,7 +88,6 @@ func Init() {
UseSSOAddress = conf.Account.UseSSOAddress
AllowTempSession = conf.Account.AllowTempSession
SignServers = conf.Account.SignServers
IsBelow110 = conf.Account.IsBelow110
HTTPTimeout = conf.Message.HTTPTimeout
SignServerTimeout = int(conf.Account.SignServerTimeout)
}
21 changes: 6 additions & 15 deletions modules/config/config.go
Original file line number Diff line number Diff line change
@@ -28,21 +28,12 @@ type Reconnect struct {

// Account 账号配置
type Account struct {
Uin int64 `yaml:"uin"`
Password string `yaml:"password"`
Encrypt bool `yaml:"encrypt"`
Status int `yaml:"status"`
ReLogin *Reconnect `yaml:"relogin"`
UseSSOAddress bool `yaml:"use-sso-address"`
AllowTempSession bool `yaml:"allow-temp-session"`
SignServers []SignServer `yaml:"sign-servers"`
RuleChangeSignServer int `yaml:"rule-change-sign-server"`
MaxCheckCount uint `yaml:"max-check-count"`
SignServerTimeout uint `yaml:"sign-server-timeout"`
IsBelow110 bool `yaml:"is-below-110"`
AutoRegister bool `yaml:"auto-register"`
AutoRefreshToken bool `yaml:"auto-refresh-token"`
RefreshInterval int64 `yaml:"refresh-interval"`
ReLogin *Reconnect `yaml:"relogin"`
UseSSOAddress bool `yaml:"use-sso-address"`
AllowTempSession bool `yaml:"allow-temp-session"`
SignServers []SignServer `yaml:"sign-servers"`
MaxCheckCount uint `yaml:"max-check-count"`
SignServerTimeout uint `yaml:"sign-server-timeout"`
}

// SignServer 签名服务器
33 changes: 2 additions & 31 deletions modules/config/default_config.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
# go-cqhttp 默认配置文件

account: # 账号相关
uin: 1233456 # QQ账号
password: '' # 密码为空时使用扫码登录
encrypt: false # 是否开启密码加密
status: 0 # 在线状态 请参考 https://docs.go-cqhttp.org/guide/config.html#在线状态
relogin: # 重连设置
delay: 3 # 首次重连延迟, 单位秒
interval: 3 # 重连间隔
@@ -17,51 +13,26 @@ account: # 账号相关
allow-temp-session: false

# 数据包的签名服务器列表,第一个作为主签名服务器,后续作为备用
# 兼容 https://github.com/fuqiuluo/unidbg-fetch-qsign
# 与android签名不兼容
# 如果遇到 登录 45 错误, 或者发送信息风控的话需要填入一个或多个服务器
# 不建议设置过多,设置主备各一个即可,超过 5 个只会取前五个
# 示例:
# sign-servers:
# - url: 'http://127.0.0.1:8080' # 本地签名服务器
# key: "114514" # 相应 key
# authorization: "-" # authorization 内容, 依服务端设置
# - url: 'https://signserver.example.com' # 线上签名服务器
# key: "114514"
# authorization: "-"
# ...
#
# 服务器可使用docker在本地搭建或者使用他人开放的服务
# 服务器不提供自建方法
sign-servers:
- url: 'https://sign.ciallo.site/api/sign' # 主签名服务器地址, 必填
- url: '-' # 备用

# 判断签名服务不可用(需要切换)的额外规则
# 0: 不设置 (此时仅在请求无法返回结果时判定为不可用)
# 1: 在获取到的 sign 为空 (若选此建议关闭 auto-register,一般为实例未注册但是请求签名的情况)
# 2: 在获取到的 sign 或 token 为空(若选此建议关闭 auto-refresh-token )
rule-change-sign-server: 1

# 连续寻找可用签名服务器最大尝试次数
# 为 0 时会在连续 3 次没有找到可用签名服务器后保持使用主签名服务器,不再尝试进行切换备用
# 否则会在达到指定次数后 **退出** 主程序
max-check-count: 0
# 签名服务请求超时时间(s)
sign-server-timeout: 60
# 如果签名服务器的版本在1.1.0及以下, 请将下面的参数改成true
# 建议使用 1.1.6 以上版本,低版本普遍半个月冻结一次
is-below-110: false
# 在实例可能丢失(获取到的签名为空)时是否尝试重新注册
# 为 true 时,在签名服务不可用时可能每次发消息都会尝试重新注册并签名。
# 为 false 时,将不会自动注册实例,在签名服务器重启或实例被销毁后需要重启 go-cqhttp 以获取实例
# 否则后续消息将不会正常签名。关闭此项后可以考虑开启签名服务器端 auto_register 避免需要重启
# 由于实现问题,当前建议关闭此项,推荐开启签名服务器的自动注册实例
auto-register: false
# 是否在 token 过期后立即自动刷新签名 token(在需要签名时才会检测到,主要防止 token 意外丢失)
# 独立于定时刷新
auto-refresh-token: false
# 定时刷新 token 间隔时间,单位为分钟, 建议 30~40 分钟, 不可超过 60 分钟
# 目前丢失token也不会有太大影响,可设置为 0 以关闭,推荐开启
refresh-interval: 40

heartbeat:
# 心跳频率, 单位秒