You can use any of this code in robots.txt:
User-agent: *
Disallow: /*comment
User-agent: *
Disallow: /*comment
thisThis will neglect every urlURL that contains 'comment'comment.
or You can use this also
User-agent: *
Disallow: /comment/reply
or
User-agent: *
Disallow: /comment
To use the following, to neglect every url after '/comment'URL containing /comment.
User-agent: *
Disallow: /comment/reply
User-agent: *
Disallow: /comment
After you Dodo this, check whether it is working or not by using the Google Robots.txt checker.