Avatar

rodrigotello

Computing Interface Designer @ http://Val.Town
Joined July 18, 2022
Likes
114
hootz avatar
telegramDalleBot
@hootz
Script
Telegram DALLE Bot A personal telegram bot you can message to create images with OpenAI's DALLE ✨ Set up yours fork this val speak to telegram’s https://t.me/botfather to create a bot and obtain a bot token set the bot token as a val town secret called telegramDalleBotToken add a random string as a val town secret called telegramDalleBotWebhookSecret set up your webhook with telegram like this: // paste and run this in your workspace on here @vtdocs.telegramSetWebhook(@me.secrets.telegramDalleBotToken, { url: /* your fork's express endpoint (click the three dots on a val) */, allowed_updates: ["message"], secret_token: @me.secrets.telegramDalleBotWebhookSecret, }); message your bot some prompts! (if you get stuck, you can refer to the telegram echo bot guide from docs.val.town)
galligan avatar
generateQR
@galligan
Script
Forked from ramkarthik/GenerateQR
lawliet avatar
helloFriend
@lawliet
Script
An interactive, runnable TypeScript val by lawliet
byjp avatar
atproto
@byjp
Script
A quick method to derive the ATProto PLC from a domain using Cloudflare's 1.1.1.1 service. Use as an API with val.town's usual URL structure: eg. https://api.val.town/v1/run/byjp.atproto?args=%5B%22byjp.me%22%5D
vtdocs avatar
guestbookExample
@vtdocs
Script
Guestbook Example See @vtdocs.guestbook to set up your own interactive guestbook. This is an example for testing!
vtdocs avatar
generateGuestbookSnippet
@vtdocs
Script
Generate Guestbook Snippet This val generates the HTML snippet for @vtdocs.guestbook . Using these two vals, you can put an interactive guestbook on any website. valUser and valName are used to build the Express API URL for your forked version of @vtdocs.guestbook .
pomdtr avatar
sendToTelegram
@pomdtr
Script
An interactive, runnable TypeScript val by pomdtr
vtdocs avatar
guestbook
@vtdocs
Script
Guestbook You can put an interactive guestbook on your website using vals! This val is the backend of the guestbook that returns existing messages and handles new messages. To generate a HTML snippet to post on your website, use @vtdocs.generateGuestbookSnippet . Setup Fork this val. Paste the below snippet into your Val Town workspace – replacing alice and guestbook with your Val Town username and the name of @vtdocs.guestbook fork respectively. @vtdocs.generateGuestbookSnippet('alice', 'guestbook') Place the HTML block it returns anywhere on your website.
byjp avatar
addShortlink
@byjp
Express
Shortlinks for the decentralised web This is a script to allow API-based updating of the shortlinks/redirects in an IPFS-based shortlink repo (using val.town). I've written up how all this works on my blog at https://byjp.me/posts/link-shortener
yieldray avatar
pushplus
@yieldray
Script
get token from: https://www.pushplus.plus/push1.html
tmcw avatar
big_stories_ranks
@tmcw
Script
// set by tmcw.big_story at 2023-07-21T13:27:35.553Z
tmcw avatar
poll
@tmcw
Express
Quick poll https://tmcw-poll.express.val.run This val, along with a val called poll_results and a val called poll_options , lets you conduct a little poll using just Val Town! With the express API , this exposes a web interface in which people can click an option and vote. We make sure everyone only votes once by setting a cookie in their browser. This uses htmx to make the voting experience slick, Tailwind to style the UI, and htm to generate HTML for the pages. If you want to use this yourself, fork this val, the poll_results val, and the poll_options val, and customize the options list. You can delete the existing results as well to clear the data.
pdebie avatar
publishYoutubeToLemmy
@pdebie
Script
Publish a Youtube feed to Lemmy This allows you to automatically publish a Youtube channel to to a Lemmy community. Example usage: async function publishMyFeed() { try { return @pdebie.publishYoutubeToLemmy({ instance: "lemm.ee", auth: @me.secrets.lemmee, communityId: 23316, youtubeChannelId: "UChZgikssAJkmiQOv_sO-ngQ", lastSyncTime: @pdebie.spacexLemmyDb.lastSync, }); } finally { @pdebie.spacexLemmyDb.lastSync = new Date().toISOString(); } } Get a Youtube channel ID here . Make sure to set your lastSync properly, since otherwise you'll keep publishing new posts!
pdebie avatar
youtubeFeed
@pdebie
Script
Fetches all videos for a Youtube channel, by using its RSS feed.
stevekrouse avatar
stockPrice
@stevekrouse
HTTP (deprecated)
Current Stock Price This val was designed to be used in Google Sheets, particularly because Google Finance stopped supporting Spotify inexplicably. Usage Copy and paste this into Google Sheets: =IMPORTDATA(CONCATENATE("https://stevekrouse-stockprice.web.val.run/?simple=1&symbol=","SPOT")) Replace "SPOT" with the symbol you want API This val currently uses Alpha Vantage's free plan (5 requests per minute & 500 per day). You can sign up for your own API Key here: https://www.alphavantage.co/support/#api-key
wesbos avatar
guestBook
@wesbos
Script
// set by wesbos.displayGuestBook at 2023-06-29T17:23:52.611Z