Skip to content

Commit

Permalink
optimize: remove sensitive messages
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed May 6, 2024
1 parent 135f3a0 commit df1b21d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit df1b21d

Please sign in to comment.