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:
SileNce5k 2024-09-11 15:03:57 +02:00
parent 76ab15b79f
commit 6172814a2e
Signed by: SileNce
GPG key ID: B0A142BB4291B204

View file

@ -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"
}; };