Discord.py lastfm bot command issue

73 Views Asked by At

I'm making a lastfm bot in discord.py and it says for line 27 "Undetermined string lateral". Idk how to fix it

Issue is:

track_list += f"{track['name']} by

{track['artist']['name']}\n"

# Get the top tracks of the user with the Last.fm

@client.command()

async def toptracks(ctx, username):


API client

tracks = lastfm_client.user.get_top_tracks(user=

username)

# Create a string with the track name and artist

for each track

track_list = ""

for track in tracks:

track_list += f"{track['name']} by

{track['artist']['name']}\n
0

There are 0 best solutions below