add weight
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-04-09 15:48:31 +07:00
parent ada1a97999
commit a35a5c8efc
9 changed files with 171 additions and 20 deletions
+4 -3
View File
@@ -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
}