> ## Documentation Index
> Fetch the complete documentation index at: https://docs.razebot.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# Last.fm

> Link your Last.fm account and track your music listening history directly from Discord.

# Last.fm

> Link your Last.fm account and track your music listening history directly from Discord.

## How it works

raze connects to your Last.fm account using official OAuth — no passwords shared, just a one-click approval on the Last.fm site. Once linked, you can view your currently playing track, top artists, top tracks, and see who else in your server listens to the same artists.

## Linking your account

There are two ways to connect a Last.fm account.

**OAuth login (recommended)**

<CodeGroup>
  ```bash Syntax theme={null} theme={null}
  ;lf login
  ```

  ```bash Example theme={null} theme={null}
  ;lf login
  ```
</CodeGroup>

raze will send you a DM with a secure link. Click it, approve access on Last.fm, and you're done. The link expires in 10 minutes and can only be used once.

<Note>
  Make sure **Allow direct messages from server members** is enabled in your Discord Privacy Settings, otherwise the DM won't arrive.
</Note>

**Set by username**

<CodeGroup>
  ```bash Syntax theme={null} theme={null}
  ;lf set (username)
  ```

  ```bash Example theme={null} theme={null}
  ;lf set wanderer
  ```
</CodeGroup>

Links your account by Last.fm username directly, without OAuth. Use this if you don't need scrobble write access.

## Unlinking

```bash theme={null} theme={null}
;lf remove
```

Removes your linked Last.fm account from raze.

***

## Now Playing

<CodeGroup>
  ```bash Syntax theme={null} theme={null}
  ;nowplaying [user]
  ```

  ```bash Example theme={null} theme={null}
  ;nowplaying @wanderer
  ```
</CodeGroup>

Shows the currently playing (or last played) track for you or another user. Displays track name, artist, album, and album art. Available as a slash command and works in DMs when raze is added to your apps.

Aliases: `;np`

***

## Top Tracks

<CodeGroup>
  ```bash Syntax theme={null} theme={null}
  ;lf toptracks [@user]
  ```

  ```bash Example theme={null} theme={null}
  ;lf tt
    ;lf toptracks @wanderer
  ```
</CodeGroup>

Shows the top 50 tracks for you or another user, paginated.

Aliases: `;lf tt`

## Top Artists

<CodeGroup>
  ```bash Syntax theme={null} theme={null}
  ;lf topartists [@user]
  ```

  ```bash Example theme={null} theme={null}
  ;lf ta
    ;lf topartists @wanderer
  ```
</CodeGroup>

Aliases: `;lf ta`

## Recent Tracks

<CodeGroup>
  ```bash Syntax theme={null} theme={null}
  ;lf recent [@user]
  ```

  ```bash Example theme={null} theme={null}
  ;lf re
    ;lf recent @wanderer
  ```
</CodeGroup>

Aliases: `;lf re`

## User Stats

<CodeGroup>
  ```bash Syntax theme={null} theme={null}
  ;lf user [@user]
  ```

  ```bash Example theme={null} theme={null}
  ;lf user
    ;lf user @wanderer
  ```
</CodeGroup>

Shows a profile overview — scrobble count, registered date, and most played artists.

***

## Server Commands

These commands use your server's member list and are only available in servers.

### Who Knows

<CodeGroup>
  ```bash Syntax theme={null} theme={null}
  ;lf whoknows (artist)
  ```

  ```bash Example theme={null} theme={null}
  ;lf wk The Weeknd
    ;lf whoknows Radiohead
  ```
</CodeGroup>

Ranks everyone in the server by play count for a given artist. If no artist is provided, uses your currently playing track.

Aliases: `;lf wk`

### Compare

<CodeGroup>
  ```bash Syntax theme={null} theme={null}
  ;lf compare (@user)
  ```

  ```bash Example theme={null} theme={null}
  ;lf compare @wanderer
  ```
</CodeGroup>

Compares your music taste with another user based on shared artists.

### Crown

<CodeGroup>
  ```bash Syntax theme={null} theme={null}
  ;lf crown (artist)
  ```

  ```bash Example theme={null} theme={null}
  ;lf crown Arctic Monkeys
  ```
</CodeGroup>

Claims the crown for an artist if you have the highest play count in the server. Only one person can hold the crown per artist.

***

## Reactions

Customize the reactions raze adds to your now playing messages.

<CodeGroup>
  ```bash Syntax theme={null} theme={null}
  ;lf reactions (emoji1) (emoji2)
  ```

  ```bash Example theme={null} theme={null}
  ;lf reactions 🔥 🗑️
  ```
</CodeGroup>

By default raze adds 🔥 and 🗑️. Set to `none` to disable reactions entirely.

```bash theme={null} theme={null}
;lf reactions none
```
