// Name: Brainrot Generator // Description: Generate chaotic meme-style brainrot text for any topic and copy it to the clipboard. // Author: freddyhacks1x1666 // GitHub: freddyhacks1x1666 import "@johnlindquist/kit" function rand<T>(arr: T[]): T { return arr[Math.floor(Math.random() * arr.length)] } function spongebobCase(s: string): string { return s .split("") .map((c, i) => (/[a-z]/i.test(c) ? (i % 2 ? c.toLowerCase() : c.toUpperCase()) : c)) .join("") } function fallbackBrainrot(topic: string): string { const nouns = [ "SKIBIDI", "RIZZ", "GYATT", "SIGMA", "OHIO", "GRIMACE", "SKIBIDI TOILET", "GOON", "NPC", "MEWING", "SKIBIDI RIZZLER", ] const verbs = [ "COOKING", "LOCKED IN", "BUZZING", "GOATED", "ZOINKING", "PHONKED UP", "BARKING", "GYATTTING", ] const extras = [ "NO CAP", "FR FR", "ONG", "LITERALLY ME", "SHEEEESH", "BET", "LOWKEY", "HIGHKEY", "MID? NAH", ] const emojis = ["🔥", "💀", "😭", "😤", "🗣️", "🌀", "✨", "🧠", "⚡️", "🚨", "🗿", "🥶", "🤯", "🫡"] const t = topic.trim() || "this" const line1 = `${spongebobCase(t)} ${rand(verbs)} LIKE ${rand(nouns)} ${rand(emojis)}${rand(emojis)}` const line2 = `${rand(extras)} ${rand(emojis)} ${rand(nouns)} ENERGY ${rand(emojis)}` const line3 = `RIZZ LEVEL: MAX ${rand(emojis)} SKIBIDI MODE ON ${rand(emojis)}` const out = `${line1}\n${line2}\n${line3}` return out.slice(0, 240) } const input = await arg({ placeholder: "Enter a topic or paste text to brainrotify", strict: false, }) let output = "" try { const generate = ai( `Rewrite the user's text into chaotic "brainrot" zoomer meme style. - Keep it short (<= 240 characters), punchy, and high-energy. - Mix random caps, slang (skibidi, rizz, sigma, gyatt, ohio), onomatopoeia, and emoji. - Avoid slurs or hateful content. Keep it playful. - Return ONLY the rewritten text, no quotes, no preamble.` ) output = (await generate(String(input))).trim() if (!output) throw new Error("Empty AI response") } catch { output = fallbackBrainrot(String(input)) } await copy(output) await div( md( `## Brainrot ${output} Copied to clipboard.` ) )// Name: Roblox Brainrot Helper // Description: Opens helpful resources related to the Roblox game "Steal a Brainrot". // Author: freddyhacks1x1666 // GitHub: freddyhacks1x1666 import "@johnlindquist/kit" await div( md(`# Roblox Brainrot Helper This script cannot spawn items or automate gameplay in Roblox. Use it to quickly open useful resources for "Steal a Brainrot". `) ) type Choice = { name: string description?: string value: string } const choices: Choice[] = [ { name: "Search Google for Steal a Brainrot", description: "Find the game page, guides, and community posts", value: "google", }, { name: "Search YouTube: All Brainrots", description: "Watch tutorials and gameplay videos", value: "youtube", }, { name: "Search Roblox: Steal a Brainrot", description: "Search Roblox for the game", value: "roblox-search", }, { name: "Search Roblox Catalog: brainrot", description: "Search the catalog for related items", value: "catalog", }, ] const action = await arg<Choice>( { placeholder: "Choose a resource to open", enter: "Open", }, choices ) switch (action?.value) { case "google": await browse( "https://www.google.com/search?q=" + encodeURIComponent('Roblox "Steal a Brainrot"') ) break case "youtube": await browse( "https://www.youtube.com/results?search_query=" + encodeURIComponent('Roblox "Steal a Brainrot" all brainrots') ) break case "roblox-search": await browse( "https://www.roblox.com/discover/?Keyword=" + encodeURIComponent("Steal a Brainrot") ) break case "catalog": await browse( "https://www.roblox.com/catalog?Keyword=" + encodeURIComponent("brainrot") ) break default: await notify("No action selected") break }