Nijika (にじか)

A bot that will report an user's Now Playing status via Matrix, using Last.fm

Building

You'll need Task and a recent Go toolchain to compile this project.

Usage

  • Grab a developer API key and secret from Last.fm and export these as LASTFM_API_KEY and LASTFM_API_SECRET in the shell session.
  • Authorize this program with Last.fm (remember the token used for authorization)
  • Get an account on a Matrix homeserver, grab the server URL, username (formatted as @<username>:<domain>), and access token (getting an user's access token is client-dependent however)
  • Write all the obtained values in a configuration file like this: config.ini.example
  • Dispatch a message using ./nijika send -c config.ini (or whatever name you used for the configuration file)
  • Profit?!

Note

Right now the program has a few issues of its own, so it can't be run in any other way besides in an one-off manner.

Warning

Do not register in matrix.org

S
Description
Last.fm bot for Matrix (abandoned)
Readme 49 KiB
Languages
Go 70.2%
Roff 29.8%