This commit is contained in:
2023-05-24 08:31:35 +00:00
parent 7a84de548a
commit aea2009d93
16 changed files with 503 additions and 166 deletions

View File

@ -1,4 +1,5 @@
require("dotenv").config();
const { ActivityType } = require("discord.js");
const { glob } = require("glob");
const { promisify } = require("util");
const globPromise = promisify(glob);
@ -54,7 +55,8 @@ module.exports = async (client) => {
basecount = countdocument.count || 0;
console.log('');
console.log(`Starting count from ${basecount}`)
console.log(`Starting count from ${basecount}`);
console.log(``);
}).catch((error) => {
console.error(error);
});
@ -76,6 +78,11 @@ module.exports = async (client) => {
// Slash Commands Register
client.on("ready", async () => {
// client.user.setPresence({
// activities: [{ name: `over msgs for certain letters`, type: ActivityType.Watching }],
// status: 'dnd',
// });
cron.schedule('*/2 * * * *', async () => {
console.log(`${moment(Date.now()).format('DD/MM/YY H:mm:ss')} Starting count refresh...`);