Skip to content

Commit

Permalink
fix: word list not found
Browse files Browse the repository at this point in the history
  • Loading branch information
royce-mathew committed Jan 10, 2025
1 parent a412199 commit c447c84
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/app/(app)/apps/wordle/get-word.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@

import fs from "fs/promises"

const words_file = await fs.readFile("public/files/words.txt", "utf8")
const words_file = await fs.readFile("./words.txt", "utf8")
const valid_words = words_file.split("\n").map((word) => word.trim())

const all_words_file = await fs.readFile(
"public/files/possible_words.txt",
"utf8"
)
const all_words_file = await fs.readFile("./possible_words.txt", "utf8")
const all_words = all_words_file.split("\n").map((word) => word.trim())

// Get a random word
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit c447c84

Please sign in to comment.