fmtt: Set weekly as the default time period
This commit is contained in:
parent
3ed4714457
commit
4a67153fb9
1 changed files with 6 additions and 5 deletions
|
@ -17,11 +17,12 @@ module.exports = async function (userID, option) {
|
|||
}
|
||||
if(option.length === 0){
|
||||
option[0] = "weekly"
|
||||
}else {
|
||||
}
|
||||
|
||||
option[0] = options[option[0]];
|
||||
if(option[0] === undefined)
|
||||
option[0] = options[option[0]];
|
||||
}
|
||||
|
||||
const apiKey = process.env.LAST_FM_API_KEY;
|
||||
if(lastfmUsername != undefined){
|
||||
tracks = await new Promise ((resolve, reject) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue