It uses pattern files just like most chatbots.
Pattern files match sentences.
input "How are you?" Response = "Im Good, how are you?"
now chuck in variables on both sides.
All that cleverbot does is adjust these pattern files with user input. So the more people chatting bollox to it, the more bollox in the pattern file.