Fix uninitialized variable

This commit is contained in:
SileNce5k 2024-10-22 07:49:42 +02:00
parent b94cb6fb91
commit e04d8857f9
Signed by: SileNce
GPG key ID: B0A142BB4291B204

View file

@ -39,6 +39,7 @@ module.exports = async function (userID, guild) {
}
resolve(tracks);
} catch (error) {
let scrobble = {};
scrobble.error = true;
if (data.error === 6) {
scrobble.errorMsg = "User not found. Use `<prefix>fm set <lastfm_username>` to set your last.fm username.";