Here's what the combined code might look like, replace the necessary words and text with what you need:
on *:INPUT:*:{
if (/* !iswm $1) {
if ($1 == word1) { say $1 your text $2- | halt }
if ($1 == word2) { say $1 your text $2- | halt }
if ($1 == word3) { say $1 your text $2- | halt }
if ($1 == word4) { amsg $1 your text $2- | halt }
if ($1 == word5) { me $1 your text $2- | halt }
if ($1 == word6) { ame $1 your text $2- | halt }
}
}
P.S. I hope that it is you who is learning, and not AI instead of you.