Fix shorthands for toptracks
I previously used chatgpt to generate shorthands for times, but I didn't read them so it generated stuff like daily. Now there are only lengths that exist in the lastfm api
This commit is contained in:
parent
76ab15b79f
commit
6172814a2e
1 changed files with 17 additions and 13 deletions
|
@ -15,26 +15,30 @@ module.exports = async function (userID, option, guild) {
|
||||||
}
|
}
|
||||||
let tracks = [];
|
let tracks = [];
|
||||||
const options = {
|
const options = {
|
||||||
"d": "1day",
|
"weekly": "7day",
|
||||||
"m": "1month",
|
"week": "7day",
|
||||||
"w": "7day",
|
"w": "7day",
|
||||||
|
|
||||||
|
"monthly": "1month",
|
||||||
|
"month": "1month",
|
||||||
|
"m": "1month",
|
||||||
|
|
||||||
|
"quarterly": "3month",
|
||||||
"q": "3month",
|
"q": "3month",
|
||||||
|
|
||||||
|
"halfyear": "6month",
|
||||||
|
"hy": "6month",
|
||||||
"h": "6month",
|
"h": "6month",
|
||||||
|
|
||||||
|
"yearly": "12month",
|
||||||
|
"year": "12month",
|
||||||
"y": "12month",
|
"y": "12month",
|
||||||
|
|
||||||
|
"alltime": "overall",
|
||||||
"a": "overall",
|
"a": "overall",
|
||||||
"at": "overall",
|
"at": "overall",
|
||||||
"all": "overall",
|
"all": "overall",
|
||||||
"daily": "1day",
|
|
||||||
"weekly": "7day",
|
|
||||||
"monthly": "1month",
|
|
||||||
"quarterly": "3month",
|
|
||||||
"halfyear": "6month",
|
|
||||||
"yearly": "12month",
|
|
||||||
"biweekly": "14day",
|
|
||||||
"fortnight": "14day",
|
|
||||||
"twomonth": "2month",
|
|
||||||
"twoyear": "24month",
|
|
||||||
"weekend": "2day",
|
|
||||||
undefined: "7day"
|
undefined: "7day"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue