From 21463d0b71928f2c7f4fe4f42e336b6fbc52ec93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Fri, 28 Jul 2023 14:18:54 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=96=20v1.7.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot.go | 2 ++ go.mod | 14 +++++++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/bot.go b/bot.go index 00c63df..3129f88 100644 --- a/bot.go +++ b/bot.go @@ -213,6 +213,7 @@ func init() { late := flag.Uint("l", 233, "Response latency (ms).") rsz := flag.Uint("r", 4096, "Receiving buffer ring size.") maxpt := flag.Uint("x", 4, "Max process time (min).") + markmsg := flag.Bool("m", false, "Don't mark message as read automatically") terminal.SetTitle() gocq.InitBase() @@ -246,6 +247,7 @@ func init() { RingLen: *rsz, Latency: time.Duration(*late) * time.Millisecond, MaxProcessTime: time.Duration(*maxpt) * time.Minute, + MarkMessage: !*markmsg, Driver: []zero.Driver{f}, }) logrus.Debugln("[bot] set superusers:", qqs) diff --git a/go.mod b/go.mod index a47c50a..28f085b 100644 --- a/go.mod +++ b/go.mod @@ -3,26 +3,26 @@ module github.com/FloatTech/gocqzbp go 1.20 require ( - github.com/FloatTech/ZeroBot-Plugin v1.7.1 + github.com/FloatTech/ZeroBot-Plugin v1.7.2 github.com/FloatTech/floatbox v0.0.0-20230331064925-9af336a84944 - github.com/FloatTech/zbputils v1.6.2-0.20230411114057-4c71136244b2 - github.com/Mrs4s/go-cqhttp v1.0.1 + github.com/FloatTech/zbputils v1.6.2-0.20230728055141-bf0c1f30e617 + github.com/Mrs4s/go-cqhttp v1.1.0 github.com/sirupsen/logrus v1.9.0 github.com/tidwall/gjson v1.14.4 - github.com/wdvxdr1123/ZeroBot v1.6.11 + github.com/wdvxdr1123/ZeroBot v1.7.2 ) require ( github.com/Baidu-AIP/golang-sdk v1.1.1 // indirect - github.com/FloatTech/AnimeAPI v1.6.1-0.20230409024643-f25135dee0da // indirect + github.com/FloatTech/AnimeAPI v1.6.1-0.20230724165034-a3cf504fab92 // indirect github.com/FloatTech/gg v1.1.3-0.20230226151425-6ea91286ba08 // indirect github.com/FloatTech/imgfactory v0.2.2-0.20230413152719-e101cc3606ef // indirect github.com/FloatTech/rendercard v0.0.10-0.20230223064326-45d29fa4ede9 // indirect github.com/FloatTech/sqlite v1.6.2 // indirect github.com/FloatTech/ttl v0.0.0-20220715042055-15612be72f5b // indirect - github.com/FloatTech/zbpctrl v1.5.3-0.20230411055601-7cdff751dd67 // indirect + github.com/FloatTech/zbpctrl v1.5.3-0.20230514154630-b74e6fcca380 // indirect github.com/Microsoft/go-winio v0.6.0 // indirect - github.com/Mrs4s/MiraiGo v0.0.0-20230401072048-f8d9841755b5 // indirect + github.com/Mrs4s/MiraiGo v0.0.0-20230627090859-19e3d172596e // indirect github.com/RomiChan/protobuf v0.1.1-0.20230204044148-2ed269a2e54d // indirect github.com/RomiChan/syncx v0.0.0-20221202055724-5f842c53020e // indirect github.com/RomiChan/websocket v1.4.3-0.20220227141055-9b2c6168c9c5 // indirect