Skip to content
This repository has been archived by the owner on Mar 11, 2019. It is now read-only.

Commit

Permalink
what, do you think i know if this works? lmao i don't
Browse files Browse the repository at this point in the history
  • Loading branch information
plusreed committed May 13, 2017
1 parent d548076 commit bfd0652
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions plugins/core/lastfm.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,15 @@ async def profile(self):
await self.bot.say("**lfm**: done!")
else:
embed = discord.Embed(title="Last.fm Profile", colour=discord.Colour(0x7c998c),
url=u_details['user']['url'], timestamp=datetime.datetime.utcnow())
url=ud.user.url, timestamp=datetime.datetime.utcnow())

embed.set_author(name=u_details['user']['name'], url=u_details['user']['url'],
icon_url=u_details['user']['image']['size'])
embed.set_author(name=ud.user.name, url=ud.user.url,
icon_url=ud.user.image.size)
embed.set_footer(text="Generated by Fox", icon_url=self.bot.user.default_avatar_url)

embed.add_field(name="**Currently Scrobbling**", value=u_playing['recenttracks']['track'][0])
if up.recenttracks.track[0]:
embed.add_field(name="**Currently Scrobbling**", value=up.recenttracks.track[0])
else:
embed.add_field(name="**Currently Scrobbling**", value="Not scrobbling anything")
# embed.add_field(name="__Last Scrobbled Tracks__",
# value="1. asdf\n2. asdasd\n3. asfdsfsd\n4. sdfsf\n5. dsfdsfds")

Expand Down

0 comments on commit bfd0652

Please sign in to comment.