Octolens social listening alerts in Discord

Val Town uses Octolens to monitor mentions of Val Town across social platforms (Reddit, Twitter, Bluesky, Hacker News, etc).

This val accepts webhooks from Octolens and then reformats them for Discord.

Screenshot 2025-10-07 at 15.01.37@2x.png

Getting started

  1. Remix this val
  2. Get a Discord Webhook URL. Save in this val's env variables
  3. Test it out by running shell.ts
  4. Randomly generate a password. Store it as PASSWORD in this val's env variables (for lightweight webhook security)
  5. Create an Octolens webhook with the HTTP endpoint and the randomly-generated password as the URL path
  6. Test out the flow end-to-end via Octolen's test endpoint button