fix critical (but funny) bug

i wasn't overwriting the file so the left over stuff was there which looked like garbage and was confusing
This commit is contained in:
mehbark 2023-08-21 23:59:15 -04:00
parent 7037d9236c
commit 5b47292cdf
8 changed files with 8 additions and 7 deletions

View file

@ -1,3 +1,3 @@
All riddles (sans one) have a one letter answer (a-z).
This is riddle #12
You can put like a boat on it. Also, you can it the itm also the sound you'll make when you figure it out
You can put like a boat on it. Also, you can it the it

View file

@ -1,3 +1,3 @@
All riddles (sans one) have a one letter answer (a-z).
This is riddle #14
OMG THIS IS SO GROSS WHY IS THERE A POTTY WORD in haskell
OMG THIS IS SO GROSS WHY IS THERE A POTTY WORD

View file

@ -1,3 +1,3 @@
All riddles (sans one) have a one letter answer (a-z).
This is riddle #15
How the type of undefined is usually displayed in haskelleping that typo, but I really meant Homestuck. Don't overthink this one
How the type of undefined is usually displayed in haskell

View file

@ -1,3 +1,3 @@
All riddles (sans one) have a one letter answer (a-z).
This is riddle #16
Arguably, the real main character of Vriska. Okay, I'm keeping that typo, but I really meant Homestuck. Don't overthink this one
Arguably, the real main character of Vriska. Okay, I'm keeping that typo, but I really meant Homestuck. Don't overthink this one

View file

@ -1,3 +1,3 @@
All riddles (sans one) have a one letter answer (a-z).
This is riddle #18
What was the sixth letter of my username again? outright say that. My bad.
What was the sixth letter of my username again?

View file

@ -1,3 +1,3 @@
All riddles (sans one) have a one letter answer (a-z).
This is riddle #2
A man in half-life What am I?
A man in half-life

View file

@ -1,3 +1,3 @@
All riddles (sans one) have a one letter answer (a-z).
This is riddle #9
I'm, like, a super popular letterWhat am I?
I'm, like, a super popular letter

View file

@ -16,6 +16,7 @@ async function write_riddle(riddle: Riddle, id: number) {
const file = await Deno.open(`/home/mbk/Aims/cohost/static/ftct/${id}.txt`, {
write: true,
create: true,
truncate: true,
});
file.write(encoder.encode(render_riddle({ ...riddle, id })));
file.close();