diff --git a/src/events/ready.ts b/src/events/ready.ts index 71f97d0..19beb6a 100644 --- a/src/events/ready.ts +++ b/src/events/ready.ts @@ -15,7 +15,7 @@ export class Ready { if(!((await stat("data")).isDirectory())) { await mkdir("data") } - if (!(await Bun.file("data/bump.json").exists())) { + if (!(await Bun.file("bump.json").exists())) { await Bun.write("bump.json", "{}"); } if (members) { diff --git a/src/utils/bump.ts b/src/utils/bump.ts index 7aae60c..9fb27ba 100644 --- a/src/utils/bump.ts +++ b/src/utils/bump.ts @@ -5,7 +5,7 @@ import { sleep } from "./underage"; export const bumpRemind = async (client: Client) => { while (true) { await sleep(5000); - const f = await Bun.file("data/bump.json").text(); + const f = await Bun.file("bump.json").text(); const data = JSON.parse(f); if (data["bump"]) { if (Date.now() - data["bump"] >= 60 * 120 * 1000) {