freeCodeCamp / 100DaysOfCode-twitter-bot

Twitter bot for #100DaysOfCode
https://twitter.com/_100DaysOfCode
BSD 3-Clause "New" or "Revised" License
285 stars 110 forks source link

Welcome bot! Respond to the user when committing to 100DaysOfCode #96

Open spences10 opened 7 years ago

spences10 commented 7 years ago

In the Medium article there's a call to arms where the user will tweet their commitment to the challenge:

I'm publicly committing to the 100DaysOfCode Challenge

The bot can reply with a welcome message, this is sort of an extension to the abandoned API:

https://github.com/freeCodeCamp/100DaysOfCode-twitter-bot/issues/15 https://github.com/freeCodeCamp/100DaysOfCode-twitter-bot/issues/66

This could be a quick win however by using stream.on('tweet' and match the specific (or exact) phrase

spences10 commented 7 years ago

Exact phrase I believe is: I'm publicly committing to the 100DaysOfCode Challenge starting today! Learn More and Join me! https://t.co/ZEiLjQJdMR #100DaysOfCode

amandeepmittal commented 7 years ago

Can we do on the basis of some keywords? I doubt there will be exact phrase.

spences10 commented 7 years ago

I think that exact phrase is generated from the. Medium article. It yes we could add a string of options like with the keywords list

amandeepmittal commented 7 years ago

That will be great. If it's generated from Medium, I don't there will be any problem.