@@ -77,10 +77,11 @@ func (s *goBotState) Do(text string, chatInfo *db.ChatInfo) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
if slices.Contains(names, text) {
|
||||
s.sendGoToChat(chatInfo.ChatID)
|
||||
if !slices.Contains(names, text) {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
s.sendGoToChat(chatInfo.ChatID)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user