title: How can I improve this program in a few lines of code?
body: <p>I'm trying to create a discord bot that checks if the message contains the string stored in the array.
  I tried using a for loop but it didn't work because it continued forever, I would like to reduce the lines of code, is there any way to do this?</p>
  <pre><code>switch {
      case strings.Contains(mContent, characterss[0]):
          currentCharacter = characterss[0]
          currentDescription = descriptions[0]
          currentImage = images[0]
          isCorrect = true
      case strings.Contains(mContent, characterss[1]):
          currentCharacter = characterss[1]
          currentDescription = descriptions[1]
          currentImage = images[1]
          isCorrect = true
      case strings.Contains(mContent, characterss[2]):
          currentCharacter = characterss[2]
          currentDescription = descriptions[2]
          currentImage = images[2]
          isCorrect = true
      case strings.Contains(mContent, characterss[3]):
          currentCharacter = characterss[3]
          currentDescription = descriptions[3]
          currentImage = images[3]
          isCorrect = true
      case strings.Contains(mContent, characterss[4]):
          currentCharacter = characterss[4]
          currentDescription = descriptions[4]
          currentImage = images[4]
          isCorrect = true
      case strings.Contains(mContent, characterss[5]):
          currentCharacter = characterss[5]
          currentDescription = descriptions[5]
          currentImage = images[5]
          isCorrect = true
      case strings.Contains(mContent, characterss[6]):
          currentCharacter = characterss[6]
          currentDescription = descriptions[6]
          currentImage = images[6]
          isCorrect = true
      }
  </code></pre>