From df1b21dd476a4eae87e83089d564827ba401dec6 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: Mon, 6 May 2024 22:22:42 +0900 Subject: [PATCH] optimize: remove sensitive messages --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 81f749c1..997aee2d 100644 --- a/main.go +++ b/main.go @@ -3,11 +3,11 @@ package main import ( "fmt" - "github.com/LagrangeDev/LagrangeGo/message" "os" "github.com/LagrangeDev/LagrangeGo/client" "github.com/LagrangeDev/LagrangeGo/info" + "github.com/LagrangeDev/LagrangeGo/message" ) func main() { @@ -23,7 +23,7 @@ func main() { qqclient.GroupMessageEvent.Subscribe(func(client *client.QQClient, event *message.GroupMessage) { if event.ToString() == "114514" { - img, _ := os.ReadFile("/Users/wenxuanlin/Desktop/2373259535.png") + img, _ := os.ReadFile("./testgroup.png") _, err := client.SendGroupMessage(event.GroupCode, []message.IMessageElement{&message.GroupImageElement{Stream: img}}) if err != nil { return @@ -32,7 +32,7 @@ func main() { }) qqclient.PrivateMessageEvent.Subscribe(func(client *client.QQClient, event *message.PrivateMessage) { - img, _ := os.ReadFile("/Users/wenxuanlin/Desktop/2373259535.png") + img, _ := os.ReadFile("testprivate.png") _, err := client.SendPrivateMessage(event.Sender.Uin, []message.IMessageElement{&message.FriendImageElement{Stream: img}}) if err != nil { return