Skip to content

Commit

Permalink
Changed cooldown log format
Browse files Browse the repository at this point in the history
  • Loading branch information
treierxyz committed Nov 17, 2023
1 parent 69b21ae commit dd01dcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cooldown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const cooldownLength: number = config.get('cooldownLength')
function manageCooldown(message: Message, keywordId: string): boolean {
if (message.guildId) {
if (cooldowns?.[message.guildId]?.[keywordId] && cooldowns[message.guildId][keywordId].getTime() >= Date.now()) { // check if already cooled down
logger.info(`Cooldown @ ${message.guild} for "${keywordId}" until ${cooldowns[message.guildId][keywordId].toISOString()}`);
logger.info(`Cooldown in: ${message.guild}, reason: "${keywordId}", lasting for: ${cooldowns[message.guildId][keywordId].toISOString()}`);
return true
} else { // else if no cooldown
cooldowns[message.guildId] = {
Expand Down

0 comments on commit dd01dcc

Please sign in to comment.