diff --git a/src/structure/client/Resolver.js b/src/structure/client/Resolver.js index d600c3b..a45bdeb 100644 --- a/src/structure/client/Resolver.js +++ b/src/structure/client/Resolver.js @@ -1,3 +1,5 @@ +const timestring = require('timestring'); + class Resolver { constructor(client) { @@ -18,6 +20,16 @@ class Resolver { } + resolveTime(string) { + let time = null; + try { + time = timestring(string); + } catch (err) { + return null; + } + return time; + } + } module.exports = Resolver;