cleverbot.go
func (s *Session) InteractionCount() int {
	s.mu.Lock()
	defer s.mu.Unlock()
	if v, ok := s.Decoded["interaction_count"].(string); ok {
		if count, err := strconv.Atoi(v); err == nil {
			return count
		}
	}
	return -1
}
func (s *Session) InteractionCount() int {
	s.mu.Lock()
	defer s.mu.Unlock()
	if v, ok := s.Decoded["interaction_count"].(string); ok {
		if count, err := strconv.Atoi(v); err == nil {
			return count
		}
	}
	return -1
}
func ( s * Session ) InteractionCount ( ) int { s . mu . Lock ( ) defer s . mu . Unlock ( ) if v , ok := s . Decoded [ " " ] . ( string ) ; ok { if count , err := strconv . Atoi ( v ) ; err == nil { return count } } return - 1 }
// InteractionCount gets the count of interactions that have happened between the bot and user.
// Returns -1 if interactions_count is missing or parsing failed.
InteractionCount gets the count of interactions that have happened between the bot and user . Returns - 1 if interactions_count is missing or parsing failed .