Skip to content

h4rldev/discord-rpc-lastfm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord RPC Last.fm

Discord Rich Presence client for Last.fm, made in Rust.

Features

  • Fetches the current track from Last.fm and displays it as a Discord Rich Presence.
  • Handles errors gracefully and retries connections.
  • Verifies image URLs before using them.
  • Supports environment variables, a config aswell as .env
  • should support Linux and Windows.

Installation

Get it from releases (Windows & Linux binaries only)

or

Build it yourself!

  1. Clone the repository: git clone https://github.com/h4rldev/discord-rpc-lastfm
  2. Navigate to the project directory: cd discord-rpc-lastfm
  3. Build the project: cargo build --release

Usage

  1. Run the executable
  2. Follow the prompts to enter your Last.fm username and API key, and possibly client_id (if you want a different title).

Todo

  • Log to file instead of in console
  • Toggle console
  • Run in background

Dependencies

  • discord-rich-presence
  • reqwest
  • tokio
  • toml
  • serde
  • tracing
  • tracing-subscriber
  • tracing-appender
  • dotenvy
  • url
  • futures
  • inquire
  • crossterm
  • colored
  • home

Contributing

Pull requests are welcome.

License

BSD 3-Clause