Slack bot428 words
events from Slack’s Events API via the Express API. In this guide, you’ll build a bot that replies whenever it’s mentioned. 1. Create a Slack app. Visit https://api.slack.com/apps?new_app=1, create a
Sections
Slack bot
build a Slack bot using vals. Vals can receive events from Slack’s Events API via the Express API. In this guide, you’ll build a bot that replies whenever it’s mentioned.
1. Create a Slack app
1. Create a Slack app. Visit https://api.slack.com/apps?new_app=1, create a new app From Scratch, and choose your App Name and your workspace.
Runtime146 words
so they can make HTTP requests. Vals have access to environment variables. The experimental Temporal API is enabled. Included environment. fetch to make HTTP requests. import from npm and https.
Sections
Runtime
so they can make HTTP requests. Vals have access to environment variables. The experimental Temporal API is enabled.
Basic examples173 words
unlike other vals, expose a public endpoint. An HTTP val that works with the Web API takes a Request object as input and returns a Response object. The most basic
Sections
Basic examples
unlike other vals, expose a public endpoint. An HTTP val that works with the Web API takes a Request object as input and returns a Response object. The most basic
Routing175 words
in ChatGPT Ask questions about this page. One of the coolest things about the Request/Response API is that it works with modern web frameworks, so you can use routing and
Sections
Routing
in ChatGPT Ask questions about this page. One of the coolest things about the Request/Response API is that it works with modern web frameworks, so you can use routing and
Saving data from a web page513 words
to interact with it. You can either use form submissions or client-side JavaScript to make API calls to Val Town. Blob storage. For example, this val is an app that
Sections
Saving data from a web page
to interact with it. You can either use form submissions or client-side JavaScript to make API calls to Val Town.
Blob storage
This is a fork of the above app that uses client-side React to make the API calls: You could easily host the React part anywhere (Vercel, Netlify, etc) and have
Vulnerability Disclosure Policy325 words
severity of the exploit found. In-scope domains. Val Town uses the following domains: val.town. valtown.email. api.val.town. esm.town. val.run. Subdomains of these domains are in scope for the program. Out of
Sections
In-scope domains
In-scope domains. Val Town uses the following domains: val.town. valtown.email. api.val.town. esm.town. val.run. Subdomains of these domains are in scope for the program.
Discord bot626 words
Val Town is a social website to write, run, and host JavaScript. You can create APIs, scheduled functions, email yourself, and persist small pieces of data — all from the
Sections
Step 3: Login to Val Town
Step 3: Login to Val Town. Val Town is a social website to write, run, and host JavaScript. You can create APIs, scheduled functions, email yourself, and persist small pieces
Further Directions
you want. You’ll probably want to: Register a new Slash Command. Connect your bot to APIs like OpenAI’s GPT or Dall-E. Come join us in the Val Town Discord if
Simplified val privacy275 words
the privacy of a Val via the UI. There is currently no way to change the privacy status of Val via the API, but we plan to add that shortly.
Sections
Upgrading
the privacy of a Val via the UI. There is currently no way to change the privacy status of Val via the API, but we plan to add that shortly.
LLM prompting325 words
Val Town CLI: Terminal window # Install CLI. deno install -gAfr jsr:@valtown/vt. # Set API token. export VAL_TOWN_API_KEY=vtwn_replaceThis. # Clone project locally. vt clone my-project. Step 2: Add Val Town
Sections
Step 1: Setup
Val Town CLI: Terminal window # Install CLI. deno install -gAfr jsr:@valtown/vt. # Set API token. export VAL_TOWN_API_KEY=vtwn_replaceThis. # Clone project locally. vt clone my-project.
Environment variables280 words
text. Open in ChatGPT Ask questions about this page. You can store secrets, keys, and API token in two places: Global Environment Variables: For single Vals, but not accessible in
Sections
Environment variables
text. Open in ChatGPT Ask questions about this page. You can store secrets, keys, and API token in two places: Global Environment Variables: For single Vals, but not accessible in