Update ruler_replyWhenUserJoinSession.go
This commit is contained in:
parent
65c14cc10c
commit
48a47a8681
@ -25,7 +25,7 @@ type ReplyWhenUserJoinSession struct {
|
||||
atUserId int
|
||||
}
|
||||
|
||||
func (r ReplyWhenUserJoinSession) Hit(event ws.ListenEventData, sender *accountFiee.ChatUserData) (hit bool) {
|
||||
func (r *ReplyWhenUserJoinSession) Hit(event ws.ListenEventData, sender *accountFiee.ChatUserData) (hit bool) {
|
||||
if event.EventType != ws.EventUserJoin {
|
||||
return
|
||||
}
|
||||
@ -61,7 +61,7 @@ func (r ReplyWhenUserJoinSession) Hit(event ws.ListenEventData, sender *accountF
|
||||
return
|
||||
}
|
||||
|
||||
func (r ReplyWhenUserJoinSession) Run(cache *chatCache.ChatCache) (err error) {
|
||||
func (r *ReplyWhenUserJoinSession) Run(cache *chatCache.ChatCache) (err error) {
|
||||
err = logic.NewMessage(context.Background(), cache, r.Sender, dto.NewMessageRequest{
|
||||
Waiter: true,
|
||||
Robot: true,
|
||||
|
Loading…
Reference in New Issue
Block a user