go-wxhelper/plugin/plugins/systemmessgae.go

19 lines
544 B
Go
Raw Normal View History

package plugins
import (
"go-wechat/plugin"
"go-wechat/utils"
)
// ReplyNewFriend
// @description: 响应好友添加成功消息
// @param m
func ReplyNewFriend(m *plugin.MessageContext) {
2024-08-19 11:44:59 +08:00
if m.IsNewFriendAdd() || m.IsJoinToGroup() {
_ = utils.SendMessage(m.FromUser, m.GroupUser, "AI正在初始化请稍等几分钟初始化完成之后我将主动告知您。", 0)
}
if m.IsOldFriendBack() {
_ = utils.SendMessage(m.FromUser, m.GroupUser, "嘿,我的朋友,你为何要离我而去?又为何去而复返?", 0)
}
}