Compare commits
No commits in common. "8e2663b85db722ed09df3474bb724d0cb799b3f3" and "8968def643832b66838c531293476f031732c32b" have entirely different histories.
8e2663b85d
...
8968def643
@ -141,6 +141,6 @@ resource:
|
|||||||
type: image
|
type: image
|
||||||
path: D:\Share\wordcloud\%s
|
path: D:\Share\wordcloud\%s
|
||||||
# 邀请入群消息回复
|
# 邀请入群消息回复
|
||||||
invitation-join-group:
|
invitationJoinGroup:
|
||||||
type: text
|
type: text
|
||||||
path: "您的邀请消息已收到啦,正在通知我的主人来同意请求。在我加群之后将会进行初始化操作,直到收到我主动发送的消息就是初始化完成咯,在那之前请耐心等待喔~"
|
path: "您的邀请消息已收到啦,正在通知我的主人来同意请求。在我加群之后将会进行初始化操作,直到收到我主动发送的消息就是初始化完成咯,在那之前请耐心等待喔~"
|
||||||
|
@ -15,7 +15,7 @@ import (
|
|||||||
// @param m
|
// @param m
|
||||||
func NotifyInvitationJoinGroup(m *plugin.MessageContext) {
|
func NotifyInvitationJoinGroup(m *plugin.MessageContext) {
|
||||||
// 先回复一条固定消息
|
// 先回复一条固定消息
|
||||||
if conf, e := config.Conf.Resource["invitation-join-group"]; e {
|
if conf, e := config.Conf.Resource["invitationJoinGroup"]; e {
|
||||||
// 发送一条新消息
|
// 发送一条新消息
|
||||||
switch conf.Type {
|
switch conf.Type {
|
||||||
case "text":
|
case "text":
|
||||||
@ -30,8 +30,8 @@ func NotifyInvitationJoinGroup(m *plugin.MessageContext) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 推送到配置的用户
|
// 如果是邀请进群,推送到配置的用户
|
||||||
_, dec := m.IsInvitationJoinGroup()
|
if flag, dec := m.IsInvitationJoinGroup(); flag {
|
||||||
for _, user := range config.Conf.System.NewFriendNotify.ToUser {
|
for _, user := range config.Conf.System.NewFriendNotify.ToUser {
|
||||||
if user != "" {
|
if user != "" {
|
||||||
// 发送一条新消息
|
// 发送一条新消息
|
||||||
@ -39,6 +39,7 @@ func NotifyInvitationJoinGroup(m *plugin.MessageContext) {
|
|||||||
_ = utils.SendMessage(user, "", dec, 0)
|
_ = utils.SendMessage(user, "", dec, 0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// NotifyRemoveFromChatroom
|
// NotifyRemoveFromChatroom
|
||||||
|
Loading…
Reference in New Issue
Block a user