Compare commits

..

No commits in common. "47282580718f40b54df7953f04ac02f72b075016" and "8b677f9ec45074175882a41539593368414f2a7a" have entirely different histories.

2 changed files with 41 additions and 48 deletions

View file

@ -58,13 +58,13 @@ class CommandHandler extends BaseEvent {
}
client.logger.cmd(
`[${interaction.guild ? interaction.guild.name : "DM"}]: [${interaction.user.getUsername()}] => /${command.command.name}${
`User ${interaction.user.getUsername()} used ${command.command.name} in ${interaction.guild ? interaction.guild.name : "DM"} with arguments: ${
interaction.options.data.length > 0
? ", args: " + interaction.options.data
? interaction.options.data
.map(arg => {
return `${arg.name}: ${arg.value}`;
}).join(", ")
: ""
: "no args"
}`,
);

View file

@ -7,9 +7,6 @@ const { CronJob } = require("cron");
module.exports.init = async client => {
const cronjob = new CronJob("0 5 * * *", async function () {
client.guilds.cache.forEach(async guild => {
try {
console.log(`Checking birthdays for "${guild.name}"`);
const guildData = await client.getGuildData(guild.id);
const channel = guildData.plugins.birthdays ? await client.channels.fetch(guildData.plugins.birthdays) : null;
@ -55,10 +52,6 @@ module.exports.init = async client => {
}
});
}
} catch (err) {
if (err.code === 10003) console.log("Unknown channel");
else throw err;
}
});
},
null,