Bot for sending out links

I have had a concept to for using reddit and other social networks platforms for affiliate marketing. I'' m not going to go into the full details but I do need to know. Is there a manner in which I could create a bot that will quickly send out a link to someone who comments a specific word(s) on a post or in a pm?

sent by / u/Cobalt _ Entertainment
[link] [remarks]