Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
G
go-cqhttp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
go-cqhttp
Commits
2cdb341d
Commit
2cdb341d
authored
Oct 20, 2020
by
Mrs4s
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix oneway recall.
parent
c2fd0f1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
coolq/event.go
coolq/event.go
+6
-2
No files found.
coolq/event.go
View file @
2cdb341d
...
@@ -271,12 +271,16 @@ func (bot *CQBot) groupNotifyEvent(c *client.QQClient, e client.IGroupNotifyEven
...
@@ -271,12 +271,16 @@ func (bot *CQBot) groupNotifyEvent(c *client.QQClient, e client.IGroupNotifyEven
func
(
bot
*
CQBot
)
friendRecallEvent
(
c
*
client
.
QQClient
,
e
*
client
.
FriendMessageRecalledEvent
)
{
func
(
bot
*
CQBot
)
friendRecallEvent
(
c
*
client
.
QQClient
,
e
*
client
.
FriendMessageRecalledEvent
)
{
f
:=
c
.
FindFriend
(
e
.
FriendUin
)
f
:=
c
.
FindFriend
(
e
.
FriendUin
)
gid
:=
ToGlobalId
(
e
.
FriendUin
,
e
.
MessageId
)
gid
:=
ToGlobalId
(
e
.
FriendUin
,
e
.
MessageId
)
log
.
Infof
(
"好友 %v(%v) 撤回了消息: %v"
,
f
.
Nickname
,
f
.
Uin
,
gid
)
if
f
!=
nil
{
log
.
Infof
(
"好友 %v(%v) 撤回了消息: %v"
,
f
.
Nickname
,
f
.
Uin
,
gid
)
}
else
{
log
.
Infof
(
"好友 %v 撤回了消息: %v"
,
e
.
FriendUin
,
gid
)
}
bot
.
dispatchEventMessage
(
MSG
{
bot
.
dispatchEventMessage
(
MSG
{
"post_type"
:
"notice"
,
"post_type"
:
"notice"
,
"notice_type"
:
"friend_recall"
,
"notice_type"
:
"friend_recall"
,
"self_id"
:
c
.
Uin
,
"self_id"
:
c
.
Uin
,
"user_id"
:
f
.
Uin
,
"user_id"
:
e
.
Friend
Uin
,
"time"
:
e
.
Time
,
"time"
:
e
.
Time
,
"message_id"
:
gid
,
"message_id"
:
gid
,
})
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment