about summary refs log tree commit diff
path: root/tools/mpd-stats/go.mod
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-10-09 17:20:22 -0700
committerFranck Cuny <franck@fcuny.net>2022-06-11 14:32:06 -0700
commit4f176ac4a02d8424d21b597b516e69cbec341a2c (patch)
tree49a1333648342ecf981502f8051464d3a3ef01de /tools/mpd-stats/go.mod
parentREADME: add some information about logging (diff)
downloadworld-4f176ac4a02d8424d21b597b516e69cbec341a2c.tar.gz
scrobbler: watch for events and print song details
We create a module "mpd" to interact with our MPD instance. For now we
only have a single function to create a new client, which creates an
actual client for mpd (and we ping the instance every 30 seconds), and
a watcher to receive new events.

The tool "scrobbler" then wait for new events and display songs
information.
Diffstat (limited to 'tools/mpd-stats/go.mod')
-rw-r--r--tools/mpd-stats/go.mod2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/mpd-stats/go.mod b/tools/mpd-stats/go.mod
index fc37193..cafa7bc 100644
--- a/tools/mpd-stats/go.mod
+++ b/tools/mpd-stats/go.mod
@@ -1,3 +1,5 @@
 module golang.fcuny.net/mpd-stats
 
 go 1.17
+
+require github.com/fhs/gompd/v2 v2.2.0