Bot for sending links

I have had an idea to for using reddit and other social media platforms for affiliate marketing. I’m not going to go into the full details but I do want to know. Is there a way that I could create a bot that will instantly send a link to someone who comments a specific word(s) on a post or in a pm?

submitted by /u/Cobalt_Entertainment
[link] [comments]