1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-08-06 10:11:49 +00:00
Commit Graph

277 Commits

Author SHA1 Message Date
76295b0e89 dep: update MiraiGo 2022-03-17 16:59:47 +08:00
2a66896d43 coolq: new package cqcode
move cqcode escape&unescape to new package
2022-02-16 01:14:35 +08:00
1a78a4809a server/http: delete tab in default config
Fixes #1362
2022-02-09 22:33:53 +08:00
b70db344a6 .github: update golint.yml 2022-02-08 21:53:43 +08:00
82b0c69b1b config: remove old env config
Fixes #1219
2022-02-06 22:19:30 +08:00
be3b17dc6b fix: support join query from http query&form
Fixes #1241
Fixes #1325
2022-01-30 14:28:22 +08:00
6916fb7d47 dep: use RomiChan forked websocket 2022-01-12 22:08:39 +08:00
80e35fc800 fix(server): fix Mutex change in reconnect 2021-12-26 15:48:08 +08:00
ef2223828f feat: add WriteDeadline 2021-12-26 13:10:40 +08:00
94ec3ccbcd ci(chore): Fix stylings 2021-12-24 14:27:39 +00:00
bfc29a8c97 feat: support set max retries and retries interval (close #1252) (#1289)
* feat: support set max retries and retries interval

* fix: httpresponse using `res` before checking for errors

* fix: `HttpServerPost` now be unexported

* refactor: pretty `httpDefault`
2021-12-24 22:27:07 +08:00
26a7a1f0b6 feat(config): separate config & server (#1212)
* feat(server): add RegisterCustom

* feat(config): seprate config & server

* fix: make lint happy

* fix: make lint happy

* fix: ParseEnv nil pointer error

* typo(config): generateConfig hint

* fix(config): panic on range overflow
2021-12-07 22:39:30 +08:00
dfec28dac6 server: fix concurrent write in ws 2021-12-05 22:40:44 +08:00
a2d1e88ed5 fix: use gorilla/websocket 2021-11-18 14:23:17 +08:00
bb7f83201e feat(http): enable v12 style http endpoint 2021-11-17 22:11:15 +08:00
7b02f8b670 fix(server): create new request for every post trial
Updates #1169
2021-11-17 21:45:51 +08:00
c478870870 fix: don't listenAPI in Event connection
bug introduced by last commit
2021-11-17 11:49:33 +08:00
dba2bf2881 fix: fix ws-reverse connect info 2021-11-17 11:41:55 +08:00
ea2bda523f 修正 HTTP POST 内容类型为 json (#1168) 2021-11-17 10:36:23 +08:00
56b6957d63 fix(server): disable origin verification 2021-11-14 11:48:51 +08:00
4607024214 fix(server): fix post no http body 2021-11-13 23:37:45 +08:00
e8ac7ca81c fix(server): fix read limit in ws-server 2021-11-13 16:42:06 +08:00
530e2c24d2 fix(server): allow read more bytes in a single message
Fixes #1155
2021-11-13 15:16:23 +08:00
208563d4c9 refactor: move api.go to modules/api, filter to modules/filter
maybe do code generate for api route
2021-10-27 11:46:54 +08:00
024fe7ba05 Merge branch 'dev.ws' into dev
# Conflicts:
#	go.sum
2021-10-16 22:14:47 +08:00
47cdc20d45 fix: correct x-client-role header 2021-10-13 22:51:51 +08:00
029d3a2c18 feat: onebot 12 style mention [disabled] 2021-10-13 22:50:35 +08:00
fcc9962b15 feat: modular pprof server
This module is about 384KiB in windows/amd64
2021-10-11 22:47:06 +08:00
1771cda11c feat(server): unify websocket client connect 2021-10-07 22:24:45 +08:00
67f0ea914d feat(server): use nhooyr.io/websocket 2021-10-07 21:40:20 +08:00
446f624a37 feat(http): accept onebot v12 style endpoint
disabled currently, enabled in v1.1.0
2021-10-06 16:13:40 +08:00
19fd331c46 rf(server): use sync.Once 2021-10-06 15:53:50 +08:00
ce944539c1 feat: split out server register
we can add server with less dependency
2021-10-02 23:42:47 +08:00
1337d3f1f3 style: move internal/config to modules/config
config should not be internal, maybe some module need it.
2021-09-26 19:41:03 +08:00
ddd51e6ca3 style: move global/config to internal/config 2021-09-26 13:32:40 +08:00
cf21e81016 style: move flag parse to internal/base 2021-09-25 21:09:50 +08:00
2cf136d031 style: move flag variable into internal/base 2021-09-25 00:12:31 +08:00
87754111ce fix: make golangci-lint happy 2021-09-23 21:11:20 +08:00
1db219fce0 feat: replace gout with net/http.
This significantly reduces binary size:
old 16.5MB
new 15.5MB
on windows/amd64
2021-09-23 21:03:46 +08:00
efdd6bd16a style: move coolq.MSG to global package 2021-09-17 19:08:05 +08:00
760bb175c7 fix: incorrect del friend argument
Fixes #1070
2021-09-17 14:47:00 +08:00
59209068bf feat: delete_unidirectional_friend. 2021-09-16 18:01:24 +08:00
b8bf3f9711 feat: get_unidirectional_friend_list api. 2021-09-16 17:33:38 +08:00
bfea93312a fix: panic on setting servers.
Fixes #1039
2021-09-02 19:17:01 +08:00
d98ad55826 dep: drop jsoniter.
reduce binary size about 1 MB.
2021-08-25 16:24:35 +08:00
5fb3233a44 fix /send_group_forward_msg api unable to get params from non-json request. 2021-08-23 15:20:22 +08:00
8d6978a60d feat: alert windows user when double click 2021-08-22 15:05:14 +08:00
7f0826b594 feat(server): support long polling timeout. 2021-08-21 12:55:01 +08:00
78d76f55e2 fix(scf): always flush the writer. 2021-08-16 16:05:33 +08:00
6240e875ce add: mark_msg_as_read api. 2021-08-15 02:36:11 +08:00