From 07e6927ed501c9f0da046c5425d6e2d459abaa99 Mon Sep 17 00:00:00 2001 From: Neko Life Date: Mon, 10 May 2021 20:35:45 +0000 Subject: [PATCH] Dumped concept --- resources/date.js | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 resources/date.js diff --git a/resources/date.js b/resources/date.js deleted file mode 100644 index 8d63650..0000000 --- a/resources/date.js +++ /dev/null @@ -1,16 +0,0 @@ -'use strict'; - -/** - * @param {Number} duration - Original duration - * @param {String} value (24h) - * @param {Number} multi - Multiplier - * @returns {Number} - * @example - * const duration = muteDurationMultiplier(5000, 23h, 1 * 60 * 60 * 1000); - */ -function muteDurationMultiplier(duration, value, multi = 0) { - const digit = parseInt(value.match(/\d+/), 10); - return duration + digit * multi; -} - -module.exports = { muteDurationMultiplier } \ No newline at end of file