-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathLog.lua
More file actions
executable file
·46 lines (41 loc) · 1.13 KB
/
Copy pathLog.lua
File metadata and controls
executable file
·46 lines (41 loc) · 1.13 KB
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
36
37
38
39
40
41
42
43
44
45
46
local log = require("log")
local Api = require("coreApi")
local json = require("json")
local http = require("http")
local mysql = require("mysql")
function ReceiveFriendMsg(CurrentQQ, data)
log.info("%s","\nFriendParseMsg")
str =
string.format(
"\nFrom Msg \nFromUin %d \nToUin %d\nMsgType %s Content %s MsgSeq %s\n",
data.FromUin,
data.ToUin,
data.MsgType,
data.Content,
data.MsgSeq
)
log.notice("From log.lua Log\n%s", str)
return 1
end
function ReceiveGroupMsg(CurrentQQ, data)
log.info("%s","\nGroupMsgParseMsg")
str =
string.format(
"CurrentQQ %s\nFrom Msg \nGroupId %d \nGroupname %s \nGroupUserQQ %d \nGroupUsername %s \nMsgType %s\nContent %s seq %d time %d MsgRandom %d",
CurrentQQ,
data.FromGroupId,
data.FromGroupName,
data.FromUserId,
data.FromNickName,
data.MsgType,
data.Content,
data.MsgSeq,
data.MsgTime,
data.MsgRandom
)
log.notice("From log.Lua Log\n%s", str)
return 1
end
function ReceiveEvents(CurrentQQ, data, extData)
return 1
end