1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-05 03:23:49 +08:00

194 Commits

Author SHA1 Message Date
wdvxdr
f8dfa8db2c
style: simply send msg. 2021-08-29 22:48:03 +08:00
wdvxdr
4c8b2e9f13
drop cache file .cqimg. 2021-08-09 21:31:06 +08:00
wdvxdr
84488f9bf1
remove message.ShortVideoElement in LocalVideoElement 2021-08-09 21:15:18 +08:00
wdvxdr
3326b2aa2f
feat(coolq): mimetypes switch to array. 2021-08-06 22:31:27 +08:00
github-actions[bot]
6c52734324 ci(chore): Fix stylings 2021-08-01 20:29:21 +00:00
Mrs4s
a2f5be2166
feat: media mime scan. 2021-08-02 04:28:19 +08:00
wdvxdr
58d96004a3
perf(coolq): small change. 2021-08-01 21:41:00 +08:00
wdvxdr
6fd104a8b9
perf(coolq): optimize CQCodeEscapeText. 2021-08-01 00:16:21 +08:00
wdvxdr
86202d9d90
style: clean up io/ioutil.
rf '
  ex {
    import "io/ioutil";
    import "os";
    ioutil.WriteFile -> os.WriteFile
    ioutil.ReadFile -> os.ReadFile
  }
'
2021-07-29 15:18:50 +08:00
wdvxdr
6d5bf84603
simply makeShowPic. 2021-07-22 23:08:54 +08:00
wdvxdr
4894731422
rf(message): refactor show pic&flash pic.
Fixes: #470
2021-07-18 11:42:36 +08:00
wdvxdr
2f05775101
style: small code clean. 2021-07-08 23:01:03 +08:00
Mrs4s
5cfd53fd8a
fix custom reply element param name. 2021-07-03 16:17:18 +08:00
wdvxdr
a117d67286
style: clear filter. 2021-06-19 21:08:13 +08:00
Mrs4s
da23fc1403
fix image source. 2021-06-08 13:24:36 +08:00
wdvxdr
ca16e4c2a7
fix: private reply message id
updates: #261
2021-05-18 15:28:44 +08:00
wdvxdr
9c323c6a4e
refactor: simply ToStringMessage 2021-05-18 14:12:58 +08:00
wdvxdr
2fbaff8e72
refactor(cqcode): drop unsafe for cqcode deserialize
name                          old time/op    new time/op    delta
CQBot_ConvertStringMessage-8    1.22µs ± 5%    1.14µs ± 4%  -6.17%  (p=0.000 n=21+18)

name                          old speed      new speed      delta
CQBot_ConvertStringMessage-8  81.2MB/s ± 6%  86.7MB/s ± 3%  +6.84%  (p=0.000 n=20+18)
2021-05-02 13:39:17 +08:00
wdvxdr
111ac7f865
style: simply parse subtype in custom music share 2021-05-02 13:06:29 +08:00
wdvxdr
9534fc42fc
fix: close after read the cache file 2021-05-01 23:24:00 +08:00
wdvxdr
80827b8614
refactor(cqcode/cardimage): simply parse int 2021-04-30 14:26:41 +08:00
wdvxdr
36e0ec4e41
fix(coolq): invalid convert int to string 2021-04-28 16:27:42 +08:00
wdvxdr
0138a6c467
feat(global): lazy compile split url regex pattern 2021-04-27 20:39:47 +08:00
wdvxdr
1ecb1f62dc
fix(codec): silk sdk conditional compile 2021-04-22 21:30:51 +08:00
wdvxdr
0487f849bc
fix(coolq): tts on ios
fixes #849
2021-04-22 21:22:30 +08:00
wdvxdr
a5314f0b6d
add array benchmark 2021-04-20 13:15:33 +08:00
wdvxdr
223a888a34
reduce base64 alloc 2021-04-15 11:45:15 +08:00
wdvxdr
773d2b77e6
fix(cqcode): text message
漏改了
2021-04-14 22:43:50 +08:00
wdvxdr
f6073f5a61
feat(cqcode): format string message with buffer pool 2021-04-13 21:42:32 +08:00
wdvxdr
a27848979d
remove global/config.go 2021-04-13 21:15:44 +08:00
wdvxdr
6dfa5e5959
fix(config): only read config once 2021-04-08 22:30:17 +08:00
wdvxdr
a0cb34dc7a
fix(coolq): null message 2021-04-08 17:34:07 +08:00
Sam
c06aee39d9
Fix forward msg empty panic 2021-04-07 18:56:05 +08:00
sam01101
e8d2d345e9
at, reply 添加更多细节 (#799)
更改:
- 发送: 自定义reply可以用id了
- 发送: CQ:at 中的QQ如果不存在会使用name的field作为补偿
添加可选选项:
- 接收: 添加延申reply信息
- 删除回复消息中重复的艾特 (Closes #764)
2021-04-06 21:22:51 +08:00
Github Actions
15a59d4252 ci(chore): Fix stylings 2021-04-04 14:16:49 +00:00
wdvxdr
ecf695a68d
fix typo 2021-04-04 15:32:52 +08:00
wdvxdr
337e53ebc6
fix escape 2021-04-04 15:28:47 +08:00
wdvxdr
8db68f9427
fix: cqcode fix url
之前写的时候憨批了
2021-03-28 00:11:13 +08:00
wdvxdr
3301077c46
websocket read with buffer pool 2021-03-18 22:32:54 +08:00
Github Actions
ec965a9eb7 ci(chore): Fix stylings 2021-03-17 14:44:57 +00:00
wdvxdr
c43cb5d0f5
ci: auto fix 2021-03-17 22:39:18 +08:00
wdvxdr
ee73fca2ce
ci: update golangci-lint
fix golint
update golangci-lint
2021-03-16 13:33:55 +08:00
wdvxdr
8185c4cdf1
fix typo 2021-03-08 22:32:15 +08:00
Sam
45102614b8 多项改动
修复:
- SendGroupForwardMessage 添加发送失败Handler
- 禁言逻辑修复, 可以进行30(整)天的禁言
- 添加无法撤回临时信息Handling
- 临时会话发送与接收信息入库 (暂时不能撤回信息, Fixes #495)
更改:
- 临时会话中的变量改名 (code -> groupId)
- 警告信息添加空格 (见cqcode.go)
- 更新文档: 添加seq说明, 缩短某个网址, 添加某个CQcode定义的导向
添加:
- 为自定义reply添加seq选项让信息更具真实性
- 添加删除好友处理 (https://github.com/Mrs4s/MiraiGo/pull/129, Fixes #374)
2021-03-02 04:55:37 +08:00
Mrs4s
550e8d3531
Merge pull request #660 from wdvxdr1123/patch/cqcode_fast
Accelerate cqcode again!
2021-02-22 17:43:10 +08:00
wdvxdr
42e5b0564c
fast!!!
goos: windows
goarch: amd64
pkg: github.com/Mrs4s/go-cqhttp/coolq
cpu: Intel(R) Core(TM) i5-9300H CPU @ 2.40GHz
BenchmarkCQBot_ConvertStringMessage-8             963939              1205 ns/op             368 B/op         11 allocs/op
PASS
ok      github.com/Mrs4s/go-cqhttp/coolq        1.764s
2021-02-22 16:36:24 +08:00
Mrs4s
65112f8752
Merge pull request #659 from wdvxdr1123/patch/cqcode_fast
 Speed up cqcode parsing
2021-02-21 23:42:21 +08:00
wdvxdr
36c0aaae6b
fix golint 2021-02-21 22:48:57 +08:00
wdvxdr
976f2233b4
Speed up cqcode parsing
BenchmarkCQBot_ConvertStringMessage-8             232700              4743 ns/op            2672 B/op         65 allocs/op
BenchmarkCQBot_ConvertStringMessage2-8            752025              1643 ns/op            1376 B/op         17 allocs/op
2021-02-21 22:43:12 +08:00
Akiba
3cc0453958 add cardimage brief support #478 2021-02-20 20:45:45 +08:00