a random prompt generator powered by charm CLI's hotdiva2000
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 49 lines 1.4 kB view raw
1#!/bin/bash 2 3PROMPT=$(hotdiva2000 -r 100 | sed 's/^\|$/"/g' | paste -sd,) 4 5cat > index.html << EOF 6 7<!DOCTYPE html> 8 9<!-- 10made with love by kat @ girlonthemoon.xyz 11--> 12 13<html> 14 <head> 15 <title>hot diva 2004</title> 16 <link rel="stylesheet" href="main.css"> 17 </head> 18 <body> 19 <section id="style"> 20 <header> 21 <h1>hot diva 2004</h1> 22 </header> 23 24 <p>this is a prompt generator site, built with a single bash script, but with a catch: the prompt list is generated by <a href="https://github.com/charmbracelet/hotdiva2000">hotdiva2000</a>!</p> 25 <p>100 strings are generated every hour. so don't wait, click the below button to get some bizarre strings and use them as writing prompts!</p> 26 27 <button onclick="makePrompts()">click me :)</button> 28 <p id="prompts"></p> 29 <script> 30 const prompts = [${PROMPT}]; 31 32 function makePrompts() { 33 const random = Math.floor(Math.random() * prompts.length); 34 document.getElementById("prompts").innerText = prompts[random]; 35 } 36 </script> 37 </section> 38 39 <section id="credit"> 40 <div class="credit-par"> 41 <p><a href="https://tangled.org/katproto.girlonthemoon.xyz/hotdiva2004">source code</a></p> 42 <p><a href="https://girlonthemoon.xyz/elsewhere">find me elsewhere</a></p> 43 <p><a href="https://prompts.4-walls.net/">more prompt generators</a></p> 44 </div> 45 </section> 46 </body> 47</html> 48 49EOF