From 493a9bce1071a2b9cf1a0295251390fe702b9400 Mon Sep 17 00:00:00 2001 From: Emily J Date: Fri, 26 Feb 2021 13:17:06 +1100 Subject: [PATCH] just gonna use a lib instead lol --- bot/util/functions.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/bot/util/functions.js b/bot/util/functions.js index 7be5c61..d439608 100644 --- a/bot/util/functions.js +++ b/bot/util/functions.js @@ -86,22 +86,6 @@ class Functions { return; } - epochDifference (difference) { - const secondsInMiliseconds = 1000; - const minutesInMiliseconds = 60 * secondsInMiliseconds; - const hoursInMiliseconds = 60 * minutesInMiliseconds; - - const differenceInHours = difference / hoursInMiliseconds; - const differenceInMinutes = differenceInHours % 1 * 60; - const differenceInSeconds = differenceInMinutes % 1 * 60; - - return { - 'h' : Math.floor(differenceInHours), - 'm' : Math.floor(differenceInMinutes), - 's' : Math.floor(differenceInSeconds) - }; - } - intBetween (min, max) { return Math.round((Math.random() * (max - min) + min)); }