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

# Last.fm

> Last.fm integration to show off what you're listening to or compare stats with other members.

<Note>Haunt's prefix is set to `;` by default.</Note>
<Info>Use `;prefix set [character]` to change the prefix for your server.</Info>

## Setup

<p>
  Setup haunt to your last.fm account to show off your favorite artists or your listening history.<br />
  If you don't have a last.fm account, <a href="https://last.fm/join">create one here</a>.
</p>

## Logging in

<p>
  To get started with setting up haunt to your account<br />
  Run the following command below
</p>

```js theme={null}
;lastfm login
```

<Frame>
  <img height="200" src="https://mintcdn.com/haunt-74016d1b/JwsosTEPAJ56Q2SG/images/integrations/lastfm/authorize.png?fit=max&auto=format&n=JwsosTEPAJ56Q2SG&q=85&s=1676aaa19b301e8ab7755e8017c7af62" data-path="images/integrations/lastfm/authorize.png" />
</Frame>

<p>
  Haunt will send you a DM asking you to authorize your last.fm account with haunt.<br />
  Create or login to your last.fm account and authorize the application.
</p>

<Frame>
  <img height="200" src="https://mintcdn.com/haunt-74016d1b/JwsosTEPAJ56Q2SG/images/integrations/lastfm/connect.png?fit=max&auto=format&n=JwsosTEPAJ56Q2SG&q=85&s=2e5d8e5aa960bdd2802c8630fdff9db2" data-path="images/integrations/lastfm/connect.png" />
</Frame>

## What now?

<p>
  That's all to it!<br />
  There are many commands you can run to show off your music taste!<br />
  Why not try some of them below!
</p>

### Show what song you're currently listening to

You can use the `nowplaying` command to show what you're listening to!

<CodeGroup>
  ```javascript Syntax theme={null}
  ;now [optional member]
  ```

  ```javascript Example theme={null}
  ;now @bhisa
  ```
</CodeGroup>

### Showing who knows a certain artist

You can use the `whoknows` command to see who knows an artist!

<CodeGroup>
  ```javascript Syntax theme={null}
  ;whoknows [optional artist]
  ```

  ```javascript Example theme={null}
  ;whoknows tame impala
  ```
</CodeGroup>

### View who knows an artist globally

You can use the `globalwhoknows` command to see who knows the same artist as you globally on the bot!

<CodeGroup>
  ```javascript Syntax theme={null}
  ;globalwhoknows [optional artist]
  ```

  ```javascript Example theme={null}
  ;globalwhoknows 50 Cent
  ```
</CodeGroup>

<Info>If the `nowplaying` command does not show the correct song, either your **last.fm library** is not updated or you aren't currently scrobbling anything.</Info>

<Frame>
  <img height="200" src="https://mintcdn.com/haunt-74016d1b/JwsosTEPAJ56Q2SG/images/integrations/lastfm/now.png?fit=max&auto=format&n=JwsosTEPAJ56Q2SG&q=85&s=c355edd7d7caab21cb6fefa5aa376a47" data-path="images/integrations/lastfm/now.png" />
</Frame>

## Unlinking your account

<p>
  If you no longer want to use haunt to show your last.fm stats.<br />
  Run the command below to remove your last.fm account's data from haunt's database.
</p>

```js theme={null}
;lastfm remove
```

## Errors

<p>
  Most last.fm errors come from the Last.fm API being broken.<br />
  I have **no control** over these errors, you would have to wait for Last.fm to fix it.<br />
  If you encounter another error, Please let us know in haunt's [Support Server](https://haunt.site/discord).
</p>

<Note>Removing your last.fm account and readding it **does not** fix any errors.</Note>
