-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhandler.go
94 lines (57 loc) · 2.3 KB
/
handler.go
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
package gonebot
import "github.com/2mf8/GoneBot/onebot"
// HandleConnect 机器人连接
var HandleConnect = func(bot *Bot) {
}
// HandleDisconnect 机器人断开
var HandleDisconnect = func(bot *Bot) {
}
// HandlePrivateMessage 收到私聊消息
var HandlePrivateMessage = func(bot *Bot, event *onebot.PrivateMsgEvent) {
}
// HandleGroupMessage 收到群聊消息
var HandleGroupMessage = func(bot *Bot, event *onebot.GroupMsgEvent) {
}
// HandleGroupUploadNotice 有人上传群文件
var HandleGroupUploadNotice = func(bot *Bot, event *onebot.GroupUploadNoticeEvent) {
}
// HandleGroupAdminNotice 群管理员变动
var HandleGroupAdminNotice = func(bot *Bot, event *onebot.GroupAdminChangeNoticeEvent) {
}
// HandleGroupDecreaseNotice 群人数减少 有人退群或被踢
var HandleGroupDecreaseNotice = func(bot *Bot, event *onebot.GroupMemberDecreaseNoticeEvent) {
}
// HandleGroupIncreaseNotice 群人数增加
var HandleGroupIncreaseNotice = func(bot *Bot, event *onebot.GroupMemberIncreaseNoticeEvent) {
}
// HandleGroupBanNotice 有人被禁言
var HandleGroupBanNotice = func(bot *Bot, event *onebot.GroupBanNoticeEvent) {
}
// HandleFriendAddNotice 新好友添加
var HandleFriendAddNotice = func(bot *Bot, event *onebot.FriendAddNoticeEvent) {
}
// HandleGroupRecallNotice 群消息撤回
var HandleGroupRecallNotice = func(bot *Bot, event *onebot.GroupMsgRecallNoticeEvent) {
}
// HandleFriendRecallNotice 好友消息撤回
var HandleFriendRecallNotice = func(bot *Bot, event *onebot.FriendMsgRecallNoticeEvent) {
}
// HandleFriendRequest 收到好友请求
var HandleFriendRequest = func(bot *Bot, event *onebot.FriendAddRequestEvent) {
}
// HandleGroupRequest 收到加群请求
var HandleGroupRequest = func(bot *Bot, event *onebot.GroupAddOrInviteRequestEvent) {
}
// HandleGroupNotify 收到群通知
var HandleGroupMemberHonorChangeNotify = func(bot *Bot, event *onebot.GroupMemberHonorChangeNoticeEvent) {
}
var HandleGroupLuckyKingNotify = func(bot *Bot, event *onebot.GroupLuckyKingNoticeEvent) {
}
var HandleGroupPokeNotify = func(bot *Bot, event *onebot.GroupPokeNoticeEvent) {
}
// HandleLifeTime 收到生命周期
var HandleLifeTime = func(bot *Bot, event *onebot.LifeTime) {
}
// HandleHeartBeat 收到机器人心跳
var HandleHeartBeat = func(bot *Bot, event *onebot.BotHeartBeat) {
}