forked from cosmic/scythe
1
0
Fork 0

Compare commits

..

No commits in common. "924939ceebe74ebae9aaa8529a5d041e1645f2f8" and "8c5edab2082b591318afd524e2fda20f4245598e" have entirely different histories.

2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ export class Ready {
if(!((await stat("data")).isDirectory())) {
await mkdir("data")
}
if (!(await Bun.file("bump.json").exists())) {
if (!(await Bun.file("data/bump.json").exists())) {
await Bun.write("bump.json", "{}");
}
if (members) {

View File

@ -5,7 +5,7 @@ import { sleep } from "./underage";
export const bumpRemind = async (client: Client) => {
while (true) {
await sleep(5000);
const f = await Bun.file("bump.json").text();
const f = await Bun.file("data/bump.json").text();
const data = JSON.parse(f);
if (data["bump"]) {
if (Date.now() - data["bump"] >= 60 * 120 * 1000) {