This commit is contained in:
Chris Wanstrath 2025-09-30 19:19:18 -07:00
parent f828384dba
commit 329d36a878
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ export async function handleGameStart(msg: Message) {
let game
try {
game = await import(`/command/${name}`)
game = await import(`/source/${name}`)
} catch (err: any) {
setStatus(msgId, "error")
addOutput(msgId, `Error: ${err.message ? err.message : err}`)

View File

@ -78,7 +78,7 @@ app.use("*", async (c, next) => {
return next()
})
app.get("/command/:name", async c => {
app.get("/source/:name", async c => {
const name = c.req.param("name")
const path = commandPath(name)
if (!path) return c.text("Command not found", 404)