Skip to content

Commit

Permalink
fix(cooldown): change debug cooldown message to info message
Browse files Browse the repository at this point in the history
  • Loading branch information
sogehige committed Oct 28, 2023
1 parent f59ae1b commit 0b4f94b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/systems/cooldown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { Parser } from '../parser.js';

import { AppDataSource } from '~/database.js';
import { prepare } from '~/helpers/commons/index.js';
import { debug, error } from '~/helpers/log.js';
import { debug, error, info } from '~/helpers/log.js';
import { app } from '~/helpers/panel.js';
import { ParameterError } from '~/helpers/parameterError.js';
import defaultPermissions from '~/helpers/permissions/defaultPermissions.js';
Expand Down Expand Up @@ -381,7 +381,7 @@ class Cooldown extends System {
parserReply(response, opts, 'chat');
}
}
debug('cooldown.check', `${opts.sender.userName}#${opts.sender.userId} have ${cooldown.name} on cooldown, remaining ${Math.ceil((cooldown.miliseconds - now + new Date(timestamp).getTime()) / 1000)}s`);
info(`${opts.sender.userName}#${opts.sender.userId} have ${cooldown.name} on cooldown, remaining ${Math.ceil((cooldown.miliseconds - now + new Date(timestamp).getTime()) / 1000)}s`);
result = false;
break; // disable _.each and updateQueue with false
}
Expand Down

0 comments on commit 0b4f94b

Please sign in to comment.