• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
dl4senses

dl4senses

amcDealsWatcher

Public
Like
amcDealsWatcher
Home
Code
7
.vtignore
AGENTS.md
README.md
C
amc_deals_checker.ts
deno.json
main.ts
H
test_amc_deals.ts
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
Code
/
Search
test_amc_deals.ts
https://dl4senses--a9115f00c59711f0a3b242dde27851f2.web.val.run
README.md

Streaming Deals Checker Automation

This automation runs daily to check for new streaming service subscription deals and emails them to you.

Supported Streaming Services

  • AMC+ 🎬 - Movie and TV streaming
  • Disney+ 🏰 - Disney, Marvel, Star Wars, and more

How it works

  1. Daily Check: Runs automatically every day via cron trigger
  2. Multiple Sources: Checks various deal sites for each service including:
    • Official Websites (AMC+, Disney+)
    • SlickDeals
    • RetailMeNot
    • Groupon
  3. New Deal Detection: Compares current deals with previously found deals to identify new ones
  4. Email Notifications: Sends formatted emails with deal details grouped by service when new deals are found
  5. Error Handling: Sends error notifications if the automation fails

Features

  • ✅ Automated daily checking
  • ✅ Multiple streaming service monitoring (AMC+, Disney+)
  • ✅ Multiple deal source monitoring per service
  • ✅ Duplicate deal filtering
  • ✅ Rich HTML email formatting with deals grouped by service
  • ✅ Error notifications
  • ✅ Deal history storage using Val Town blob storage
  • ✅ Easy to add more streaming services

Files

  • amc_deals_checker.ts - Main automation script (cron trigger) - Set to run at 2:35 PM daily
  • test_amc_deals.ts - Test endpoint for manual testing (HTTP trigger)

Setup

The automation is already configured to:

  • Run daily at 2:35 PM (14:35) - You need to set this schedule in the Val Town web UI
  • Email deals to your Val Town account email (Val Town free tier limitation)
  • Store deal history in blob storage under "streaming_deals" key

Setting the Cron Schedule

  1. Go to your Val Town dashboard
  2. Find the amc_deals_checker.ts val
  3. Set the cron schedule to: 35 14 * * * (runs at 2:35 PM daily)

Adding More Streaming Services

To add another streaming service, simply add a new entry to the STREAMING_SERVICES array in amc_deals_checker.ts:

{ name: "ServiceName", searchTerms: ["ServiceName", "Service Name", "alternate names"], officialUrl: "https://www.service.com/", retailMeNotSlug: "service.com", emoji: "📺" }

Customization

To modify the automation:

  1. Add more services: Add new entries to the STREAMING_SERVICES configuration array
  2. Change email address: Update the email addresses in the script
  3. Add more sources: Add new check functions to the service sources array
  4. Adjust frequency: Modify the cron schedule in the Val Town web UI
  5. Filter deals: Add price thresholds or keyword filters

Manual Testing

You can manually trigger the automation to test it by running the val directly.

Storage

The automation uses Val Town's blob storage to keep track of previously found deals under the key "streaming_deals".

HTTP
  • test_amc_deals.ts
    dl4senses--a9…f2.web.val.run
Cron
  • amc_deals_checker.ts
Code
.vtignoreAGENTS.mdREADME.md
C
amc_deals_checker.ts
deno.jsonmain.ts
H
test_amc_deals.ts
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.