Val Town Code SearchReturn to Val Town

API Access

You can access search results via JSON API by adding format=json to your query:

https://codesearch.val.run/%22mailto:kurt@sachersolutions.ca/%22https:/fonts.gstatic.com//%22data:image/svg+xml,%3Csvg?q=discord&page=1&format=json

For typeahead suggestions, use the /typeahead endpoint:

https://codesearch.val.run/typeahead?q=discord

Returns an array of strings in format "username" or "username/projectName"

Found 1684 results for "discord"(1002ms)

h6-stripe-webhook.ts3 matches

@werewolf006•Updated 9 hours ago
1import { discordWebhook } from "https://esm.town/v/stevekrouse/discordWebhook/main.ts";
2import { Hono } from "npm:hono";
3import Stripe from "npm:stripe";
88
89 let editLink = `([edit](${sourceURL(Error())}))`;
90 await discordWebhook({
91 url: Deno.env.get("DISCORD_WEBHOOK_URL")!,
92 content: `🤖💸 [@${username}](https://val.town/u/${username}) bought $${dollars} Townie credits ${editLink}`,
93 flags: ["SUPPRESS_EMBEDS"],

h6-README.md1 match

@werewolf006•Updated 9 hours ago
253. Add in that `_session` cookie in your personal Townie
26
27If you have any questions, please reach out on [Discord](https://discord.val.town) or at townie@val.town.

Towniestripe-webhook.ts3 matches

@werewolf006•Updated 10 hours ago
1import { discordWebhook } from "https://esm.town/v/stevekrouse/discordWebhook/main.ts";
2import { Hono } from "npm:hono";
3import Stripe from "npm:stripe";
88
89 let editLink = `([edit](${sourceURL(Error())}))`;
90 await discordWebhook({
91 url: Deno.env.get("DISCORD_WEBHOOK_URL")!,
92 content: `🤖💸 [@${username}](https://val.town/u/${username}) bought $${dollars} Townie credits ${editLink}`,
93 flags: ["SUPPRESS_EMBEDS"],

TownieREADME.md1 match

@werewolf006•Updated 10 hours ago
253. Add in that `_session` cookie in your personal Townie
26
27If you have any questions, please reach out on [Discord](https://discord.val.town) or at townie@val.town.

Towniestripe-webhook.ts3 matches

@Skywalker•Updated 13 hours ago
1import { discordWebhook } from "https://esm.town/v/stevekrouse/discordWebhook/main.ts";
2import { Hono } from "npm:hono";
3import Stripe from "npm:stripe";
88
89 let editLink = `([edit](${sourceURL(Error())}))`;
90 await discordWebhook({
91 url: Deno.env.get("DISCORD_WEBHOOK_URL")!,
92 content: `🤖💸 [@${username}](https://val.town/u/${username}) bought $${dollars} Townie credits ${editLink}`,
93 flags: ["SUPPRESS_EMBEDS"],

TownieREADME.md1 match

@Skywalker•Updated 13 hours ago
253. Add in that `_session` cookie in your personal Townie
26
27If you have any questions, please reach out on [Discord](https://discord.val.town) or at townie@val.town.

cronemain.ts2 matches

@jrmann100•Updated 1 day ago
10// TODO: what if we want multiple in a message? like "meeting at 3pm (in 2 hours)"? should we document that you can press up arrow or allow multiple?
11// probably should just include a component dropdown that has a "repeat with" and multiselect
12// TODO: ideally handle the user's locale as sent by Discord.
13// TODO: rewrite README, probably with video
14// TODO: bot should reply with instructions when dm'ed and possibly not be ephemeral in dms
27// redirect to install page
28app.get("/", (c) =>
29 c.redirect(`https://discord.com/oauth2/authorize?client_id=${CLIENT_ID}`)
30);
31app.post("/api/interactions", verify, handleInteraction);

cronehandleTimestampAutocomplete.ts1 match

@jrmann100•Updated 1 day ago
1import { InteractionResponseType } from "npm:discord-interactions";
2import { dateToUnixSeconds, generateFormatOptions } from "../util/dateUtils.ts";
3import * as chrono from "npm:chrono-node";

cronediscordFormatting.ts6 matches

@jrmann100•Updated 1 day ago
1import { InteractionResponseFlags } from "npm:discord-interactions";
2import {
3 dateToUnixSeconds,
10
11/**
12 * Generate a Discord timestamp string
13 */
14export const getDiscordTimestamp = (date: Date, format: TimestampFormatId) => {
15 return `<t:${Math.floor(date.getTime() / 1000)}:${format}>`;
16};
33 tzOffsetMinutes: number
34) => {
35 const discordTimestamp = getDiscordTimestamp(date, format);
36 const formatOptions = generateFormatOptions(date, tzOffsetMinutes);
37
40 {
41 type: 10,
42 content: `## ${discordTimestamp}`,
43 },
44 // Action Row with String Select
70 )}_. Correct? Copy the text below:
71${TICKS}
72${discordTimestamp}
73${TICKS}`,
74 },

cronedateUtils.ts1 match

@jrmann100•Updated 1 day ago
28 const timezoneOffset = timezoneOffsetFromMinutes(tzOffsetMinutes);
29 return {
30 // Discord timestamp formats
31 [TimestampFormatId.ShortTime]: formatInTimeZone(
32 date,

manga-updates-to-discord1 file match

@sorcoro•Updated 2 days ago
Reads Manga Updates RSS feed and posts new updates to Discord.

Discord-to-Linear5 file matches

@aspectrr•Updated 1 week ago
aibotcommander
Official Poe partner. ✅ Open-Source-Lab is a creator and developer ecosystem for exploration, ideation and productivity. 🪄✨🎩 https://poe.com/OpenSourceLab Support the project on PayPal: @PassionTXT You can contact me on Discord: OpenSourceLab
notbaltic
she/her | Born December 25th, 2007 | Vietnamese | Usual Nicknames: nb, baltic, balt | Profile picture by rikaramel on Discord