mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-05-19 15:04:29 +02:00
Merge branch 'veganhacktivists:main' into main
This commit is contained in:
commit
573fbe0c09
@ -104,7 +104,6 @@ export class SlowmodeCommand extends Command {
|
|||||||
if (isNumber(durationCheck)) {
|
if (isNumber(durationCheck)) {
|
||||||
durationCheck += 's';
|
durationCheck += 's';
|
||||||
}
|
}
|
||||||
this.container.logger.debug(durationCheck);
|
|
||||||
|
|
||||||
const durationParsed = new Duration(durationCheck);
|
const durationParsed = new Duration(durationCheck);
|
||||||
let time = 0;
|
let time = 0;
|
||||||
|
@ -19,10 +19,10 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if any parsed value is a number.
|
* Checks if any parsed value is a number.
|
||||||
* @param number check if variable is a number
|
* @param number check if a string is a number
|
||||||
* @returns {boolean} true if it is a number
|
* @returns {boolean} true if it is a number
|
||||||
*/
|
*/
|
||||||
export function isNumber(number: any) {
|
export function isNumber(number: string) {
|
||||||
return !Number.isNaN(+number);
|
return !Number.isNaN(+number);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user