Skip to content

Latest commit

 

History

History
44 lines (27 loc) · 1.19 KB

README.md

File metadata and controls

44 lines (27 loc) · 1.19 KB

motif

Bot for Discord that fetches data from Last.fm.

Prerequisites

  • You must have Node.js installed.

  • You need a Last.fm API key, create one here.

  • You also need a Discord bot, create one here.

  • Configure an .env file using the provided .env.example as reference:

    • TOKEN will be your bot's token and
    • LASTFM_API_KEY will be your Last.fm API key.
    • CLIENT_ID will be your bot's client ID and
    • GUILD_ID will be your server's guild ID.

Commands

/nowplaying [user]

Returns the last song scrobbled by user (a Last.fm account).

/topalbums [user] [period]

Returns the top 5 albums scrobbled by user (a Last.fm account) over a given period.

/topartists [user] [period]

Returns the top 5 artists scrobbled by user (a Last.fm account) over a given period.

/toptracks [user] [period]

Returns the top 5 tracks scrobbled by user (a Last.fm account) over a given period.