Public
Back
Version 121
7/10/2023
let welcomeEmail = `
<p>Welcome to Val Town! Here are some resources to help you set up:</p
<p>A val is small JavaScript or TypeScript snippet of code, written in the browser and run in our servers.
Create scheduled functions, email yourself, and persist small pieces of data — all from the browser.<p>
<ol style="padding-left:16px;">
<li style="margin-bottom:32px">
<h3>Join our Discord</h3>
<div><a href="https://discord.gg/dHv45uN5RY" style="color:${@me.valTownCSSLink};">Discord</a>Join our Discord so you can ask questions, share your cool vals, and learn about the cutting-edge of Val Town. We're very friendly and helpful. Don't be shy about posting links to vals you want help debugging.</div>
</li>
<li style="margin-bottom:32px;">
<h3>Learn the basics</h3>
<ul style="list-style-type: disc;">
<li style="margin-bottom:8px">Store state: <div style="${@me.CSScodeStyling};">@me.secrets.openai</div></li>
<li style="margin-bottom:8px">Reference your vals: <div style="${@me.CSScodeStyling};">@me.fizz.split('buzz').length</div></li>
<li style="margin-bottom:8px">Reference others' vals: <div style="${@me.CSScodeStyling};">@stevekrouse.moreBuzz()</div></li>
<li style="margin-bottom:8px">Reference personal secrets: <div style="${@me.CSScodeStyling};">@me.secrets.openai</div></li>
<li style="margin-bottom:8px">Import from npm: <div style="${@me.CSScodeStyling};">const _ = await import("npm:lodash-es")</div></li>
<li style="margin-bottom:8px">Run keyboard shortcut: <div style="${@me.CSScodeStyling};">cmd+enter</div></li>
</ul>
</li>
<li style="margin-bottom:32px">
<h3>Check our resources</h3>
<ul style="list-style-type: disc;">
<li>
<a href="https://docs.val.town" style="font-weight: 800; color:${@me.valTownCSSLink}; display:inline">Docs</a>
</li>
<li>
<a href="https://val.town/examples/packages", style="font-weight: 800; color:${@me.valTownCSSLink}; display:inline">npm packages</a>
</li>
<li >
<a href="https://val.town/examples/apis" style="font-weight: 800; color:${@me.valTownCSSLink}; display:inline">APIs</a>
</li>
<li>
Updated: October 23, 2023