-
Notifications
You must be signed in to change notification settings - Fork 0
/
闪照还原2.lua
35 lines (32 loc) · 900 Bytes
/
闪照还原2.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
-- 发送闪照原图
local api = require("coreApi")
local http = require("http")
local json = require("json")
function ReceiveFriendMsg(CurrentQQ, data)
return 1
end
function ReceiveGroupMsg(CurrentQQ, data)
if data.FromUserId == tonumber(CurrentQQ) then
return 1
end
if data.MsgType == 'PicMsg' and data.Content:find('群消息-QQ闪照') then
api.Api_SendMsg(
CurrentQQ,
{
toUser = data.FromGroupId,
sendToType = 2,
sendMsgType = "PicMsg",
content = "你竟然发闪照[表情176]",
groupid = 0,
atUser = 0,
picUrl = json.decode(data.Content).Url,
picBase64Buf = "",
fileMd5 = ""
}
)
end
return 1
end
function ReceiveEvents(CurrentQQ, data, extData)
return 1
end