@@ -234,8 +234,8 @@ func (bot *Groupbot) ProcessEvent(reqBodyBytes []byte) (*hum.ResponseInfo, error
234
234
}, nil
235
235
}
236
236
237
- glipApiUtil := ru.GlipApiUtil {ApiClient : bot .RingCentralClient }
238
- groupMemberCount , err := glipApiUtil .GlipGroupMemberCount (glipPostEvent .GroupId )
237
+ glipAPIUtil := ru.GlipApiUtil {ApiClient : bot .RingCentralClient }
238
+ groupMemberCount , err := glipAPIUtil .GlipGroupMemberCount (glipPostEvent .GroupId )
239
239
if err != nil {
240
240
groupMemberCount = - 1
241
241
}
@@ -252,7 +252,7 @@ func (bot *Groupbot) ProcessEvent(reqBodyBytes []byte) (*hum.ResponseInfo, error
252
252
log .Info ("AT_MENTION_INPUT: " + string (jsonutil .MustMarshal (info , true )))
253
253
log .Info ("CONFIG: " + string (jsonutil .MustMarshal (bot .AppConfig , true )))
254
254
255
- atMentionedOrGroupOfTwo , err := glipApiUtil .AtMentionedOrGroupOfTwoFuzzy (info )
255
+ atMentionedOrGroupOfTwo , err := glipAPIUtil .AtMentionedOrGroupOfTwoFuzzy (info )
256
256
257
257
if err != nil {
258
258
log .Info ("AT_MENTION_ERR: " + err .Error ())
@@ -310,8 +310,8 @@ func (bot *Groupbot) ProcessEvent(reqBodyBytes []byte) (*hum.ResponseInfo, error
310
310
311
311
func (bot * Groupbot ) SendGlipPost (glipPostEventInfo * GlipPostEventInfo , reqBody rc.GlipCreatePost ) (* hum.ResponseInfo , error ) {
312
312
if bot .AppConfig .GroupbotResponseAutoAtMention && glipPostEventInfo .GroupMemberCount > 2 {
313
- atMentionId := strings .TrimSpace (glipPostEventInfo .PostEvent .CreatorId )
314
- reqBody .Text = ru .PrefixAtMentionUnlessMentioned (atMentionId , reqBody .Text )
313
+ atMentionID := strings .TrimSpace (glipPostEventInfo .PostEvent .CreatorId )
314
+ reqBody .Text = ru .PrefixAtMentionUnlessMentioned (atMentionID , reqBody .Text )
315
315
}
316
316
317
317
reqBody .Text = bot .AppConfig .AppendPostSuffix (reqBody .Text )
0 commit comments