1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-04 19:17:37 +08:00

87 Commits

Author SHA1 Message Date
Bluefissure
88f5db89a8
feat: add Bearer authentication to sign server requests (#2247)
* feat: add sign-server-bearer

* fix: golint

* fix: golint

* fix: remove trimprefix

---------

Co-authored-by: 源文雨 <41315874+fumiama@users.noreply.github.com>
2023-08-01 11:15:31 +08:00
源文雨
7c813f8579 feat: add config sign-server-timeout 2023-08-01 11:09:04 +08:00
Lumine
f466ca7a72
feat: 提供 1.1.6 版本以上 qsign 的对接支持 (#2307)
* 增加签名服务超时设置

* 获取签名和err为空时尝试重新注册实例

* 可配置自动刷新token以及自动注册

* fix lint

* wrap callback

* add config: refresh-interval

* support qsign's `auto-register`

* fix: add registerLock to avoid repeat registraion.

* update: Enable disabling auto token refresh

* fix: use string android_id (not hexadecimal

* update default_config.yml

* fix: compatible with older  qsign (bellow 1.1.0

* fix: refresh token

* update dependency

* update go.sum

* fix: fix warnings on old version sign server

---------

Co-authored-by: 源文雨 <41315874+fumiama@users.noreply.github.com>
2023-08-01 10:33:32 +08:00
KomeiDiSanXian
6cf8030d3c update: 兼容签名服务器到v1.1.3 2023-07-10 07:15:43 +08:00
Mrs4s
9c1390c75c
feat: support sign server 2023-06-27 18:11:06 +08:00
yuanyan3060
c8e480d12f
Update default_config.yml (#2151) 2023-06-04 09:59:46 +08:00
Mrs4s
0b90074a48
feat: http timeout setting 2023-04-08 17:08:53 +08:00
Mrs4s
1ab1cba84c
rf: change protocol auto-update to manual update 2023-04-02 18:04:13 +08:00
Janet-Baker
43c6e3dcf5
fix https://github.com/Mrs4s/go-cqhttp/issues/2036 (#2040)
https://pkg.go.dev/os/exec#hdr-Executables_in_the_current_directory
2023-04-01 21:46:04 +08:00
Mrs4s
0312f05f6e
feat: basic protocol auto-updater 2023-03-15 02:33:04 +08:00
wdvxdr
72173337ae api-gen: clean up 2023-02-27 16:00:28 +08:00
wdvxdr
4ceacc38d5 onebot: move to pkg/onebot 2023-02-27 15:17:27 +08:00
wdvxdr
0e5f3ed555 server: support ob12 http long polling 2023-02-19 14:13:18 +08:00
wdvxdr
43dd9aa76d rf: move coolq/cqcode to internal/msg 2023-02-15 22:29:42 +08:00
wdvxdr
9c0525b3d4 all: use *onebot.Spec 2023-02-15 21:49:05 +08:00
wdvxdr
cf717ad762 internal/onebot: new package 2023-02-15 14:24:57 +08:00
wdvxdr
59ed726c6a Merge branch 'dev' into onebot.v12
# Conflicts:
#	coolq/api.go
#	server/websocket.go
2023-02-14 19:23:39 +08:00
BeautyyuYanli
fc0845b16d
Support API set_group_anonymous (#1875)
* support api set_group_anonymous

* update MiraiGo version

* fix bug due to MiraiGo update
2023-02-01 13:22:56 +08:00
wdvxdr
84e061f321 make golangci-lint happy 2023-01-26 22:59:04 +08:00
Maiko Tan
2a4ea28f4d
feat: add webp image convert function 2023-01-05 21:58:37 +08:00
源文雨
51747981dd feat: 默认仍使用 leveldb 2022-11-15 10:50:47 +08:00
源文雨
0ad641aa2d feat: change db to sqlite3 in default config 2022-11-09 22:58:37 +08:00
wdvxdr
2f92146092 cache: switch to leveldb 2022-08-31 21:07:18 +08:00
wdvxdr
98712bf9ca move mime to internal package 2022-08-31 16:31:47 +08:00
秋葉杏
36bf579e0f
feat: del group notice (#1567)
* update dep

* feat: _del_group_notice

* doc: get_group_notice && del_group_notice
2022-07-09 12:57:53 +08:00
wdvxdr
86f5b7f5f5
coolq: support upload_private_file
pc client can't receive file sent by this api.
2022-06-20 19:49:12 +08:00
wdvxdr
23d594be29
coolq: support upload_private_file
pc client can't receive file sent by this api.
2022-06-20 16:12:22 +08:00
Mrs4s
672dafdb9d
feat: cross version ID converter & audio/mention segment support 2022-06-17 15:39:35 +08:00
Mrs4s
f900fd62fb
feat: routing api by version & inject version field 2022-06-15 16:02:52 +08:00
Mrs4s
b013f66209
fix #1514 2022-06-06 22:40:09 +08:00
synodriver
c275806c62
add group_id for get_forward_msg (#1510) 2022-05-27 17:10:23 +08:00
秋葉杏
d313effb79
feat: send forward msg to private (#1513)
* feature(forward_msg): support send forward msg to private

Added two apis: send_forward_msg & send_private_forward_msg

* typo: messages

* fix: message source target id
2022-05-27 14:24:48 +08:00
wdvxdr
18a091145a
style: go fmt ./...
also delete mkrw.go, we can maintain this file by hand.
2022-04-14 21:53:00 +08:00
wdvxdr
429ff80cf0
update MiraiGo & remove _get_vip_info
Fixes #1429
2022-03-18 21:39:28 +08:00
千橘 雫霞
cbcfee9f69
feat: support get group notice #493 (#1418)
* feat: support get group notice #493

* feat: update `go.mod`

* fix
2022-03-18 21:15:53 +08:00
wdvxdr
34613306b3
internal/mime: use stdlib to detect mimetype 2022-03-18 17:07:10 +08:00
wdvxdr
76295b0e89
dep: update MiraiGo 2022-03-17 16:59:47 +08:00
wdvxdr
d7fe481a8b
db,server: release config after init 2022-03-13 15:23:14 +08:00
千橘 雫霞
d1f143ebf7
feat: set qq profile (#1389)
* feat: set qq profile

* refactor: support empty field
2022-02-22 13:38:42 +08:00
wdvxdr1123
9054d4cee8
db/leveldb: impl index read/write drop encoding/gob (#1370)
Two benefit below:
 * shrink go-cqhttp binary size about 200KiB
 * shrink database file from 2.8M to 1.56M compared with v2 database

Also provide a tool to migrate v2 database:
https://github.com/RomiChan/gocq-leveldb-migrate
2022-02-15 22:24:27 +08:00
github-actions[bot]
0145879f37 ci(chore): Fix stylings 2022-02-09 07:02:21 +00:00
wdvxdr
e1937e9f15
docs: document default env placeholder 2022-02-09 15:01:38 +08:00
wdvxdr
8eefcc8cc8
config: impl env placeholder with default value
Fixes #1358
2022-02-09 13:41:19 +08:00
wdvxdr
82b0c69b1b
config: remove old env config
Fixes #1219
2022-02-06 22:19:30 +08:00
Mrs4s
a5dd0bfa1f
feat: disable temp session by default 2022-01-24 19:52:13 +08:00
wdvxdr
b98f75ccab
style: run gofumpt 2021-12-29 14:04:51 +08:00
wdvxdr
a49becfff4
api-gen: replace aliases with multi-path 2021-12-28 17:17:47 +08:00
wdvxdr
024ec34fbe
fix: bus_id compatibility 2021-12-23 21:18:01 +08:00
Mrs4s
cb16c08ac8
fix: download & delete group file api error 2021-12-17 02:50:37 +08:00
Mrs4s
8da29c292e
feat: get_guild_msg api no_cache 2021-12-14 17:50:36 +08:00