redditKeywordSMS
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
This Val monitors Reddit for posts with keywords and sends you SMS notifications.
Example:
Prerequisites:
- Twilio account (for SMS notifications)
- You can create an account with $15 free credits at https://www.twilio.com/ without putting in your credit card
- SerpApi key (for searching Reddit)
Customize all of these according to your preferences:
const apiKey = Deno.env.get("SERP_API_KEY");
const twilioSid = Deno.env.get("TWILIO_ACCOUNT_SID");
const twilioToken = Deno.env.get("TWILIO_AUTH_TOKEN");
const fromNumber = Deno.env.get("TWILIO_PHONE_NUMBER");
const toNumber = Deno.env.get("YOUR_PHONE_NUMBER");
const query = "\"node\" OR \"node.js\"";