bug fix
This commit is contained in:
parent
2e1ee0f9ba
commit
87924a4656
2 changed files with 3 additions and 4 deletions
|
@ -7,14 +7,14 @@ export default {
|
|||
execute(client: Client) {
|
||||
console.log(`Ready! Logged in as ${client.user?.tag}`);
|
||||
|
||||
client.user?.setPresence({ activities: [{ name: '/ask | Bot fixed !', type: 3 }] });
|
||||
client.user?.setPresence({ activities: [{ name: '/ask', type: 3 }] });
|
||||
|
||||
setInterval(async () => {
|
||||
await checkReset();
|
||||
}, 1000 * 60);
|
||||
}, 15 * 60 * 1000);
|
||||
|
||||
setInterval(async () => {
|
||||
client.user?.setPresence({ activities: [{ name: '/ask | Bot fixed !', type: 3 }] });
|
||||
client.user?.setPresence({ activities: [{ name: '/ask', type: 3 }] });
|
||||
}, 10 * 60 * 1000);
|
||||
},
|
||||
};
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import * as fs from "fs";
|
||||
import { connectToDb, resetQuota, getLastReset, addReset } from "./mysql.js";
|
||||
|
||||
export async function checkReset() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue