diff --git a/util/lastfm/getCurrentScrobble.js b/util/lastfm/getCurrentScrobble.js index bef6776..d1071ff 100644 --- a/util/lastfm/getCurrentScrobble.js +++ b/util/lastfm/getCurrentScrobble.js @@ -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 `fm set ` to set your last.fm username.";