mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-11 13:56:15 +00:00
feat(bots/discord): add more month aliases to duration parser
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import parse from 'parse-duration'
|
||||
|
||||
parse['mo'] = parse['M'] = parse['month']!
|
||||
|
||||
const defaultUnitValue = parse['']!
|
||||
|
||||
export const parseDuration = (duration: string, defaultUnit?: parse.Units) => {
|
||||
|
||||
Reference in New Issue
Block a user