-
Notifications
You must be signed in to change notification settings - Fork 0
/
handler.go
75 lines (46 loc) · 1.77 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
package pbbot
import (
"github.com/2mf8/go-pbbot-for-rq/proto_gen/onebot"
)
// HandleConnect 机器人连接
var HandleConnect = func(bot *Bot) {
}
// HandleDisconnect 机器人断开
var HandleDisconnect = func(bot *Bot) {
}
// HandlePrivateMessage 收到私聊消息
var HandlePrivateMessage = func(bot *Bot, event *onebot.PrivateMessageEvent) {
}
// HandleGroupMessage 收到群聊消息
var HandleGroupMessage = func(bot *Bot, event *onebot.GroupMessageEvent) {
}
// HandleGroupUploadNotice 有人上传群文件
var HandleGroupUploadNotice = func(bot *Bot, event *onebot.GroupUploadNoticeEvent) {
}
// HandleGroupAdminNotice 群管理员变动
var HandleGroupAdminNotice = func(bot *Bot, event *onebot.GroupAdminNoticeEvent) {
}
// HandleGroupDecreaseNotice 群人数减少 有人退群或被踢
var HandleGroupDecreaseNotice = func(bot *Bot, event *onebot.GroupDecreaseNoticeEvent) {
}
// HandleGroupIncreaseNotice 群人数增加
var HandleGroupIncreaseNotice = func(bot *Bot, event *onebot.GroupIncreaseNoticeEvent) {
}
// 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.GroupRecallNoticeEvent) {
}
// HandleFriendRecallNotice 好友消息撤回
var HandleFriendRecallNotice = func(bot *Bot, event *onebot.FriendRecallNoticeEvent) {
}
// HandleFriendRequest 收到好友请求
var HandleFriendRequest = func(bot *Bot, event *onebot.FriendRequestEvent) {
}
// HandleGroupRequest 收到加群请求
var HandleGroupRequest = func(bot *Bot, event *onebot.GroupRequestEvent) {
}