h4rldev / discord-rpc-lastfm

last.fm discord rpc implemented in rust!

Home Page:https://github.com/h4rldev/discord-rpc-lastfm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

last.fm discord rpc implemented in rust!

https://github.com/h4rldev/discord-rpc-lastfm

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Rust 93.4%Language:Just 6.6%