Public
Like
octolens
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.
main.ts
https://valdottown--4c70e874996e11f082bb0224a6c84d84.web.val.run
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.
- Remix this val
- Get a Discord Webhook URL. Save in this val's env variables
- Test it out by running
shell.ts - Randomly generate a password. Store it as
PASSWORDin this val's env variables (for lightweight webhook security) - Create an Octolens webhook with the HTTP endpoint and the randomly-generated password as the URL path
- Test out the flow end-to-end via Octolen's test endpoint button