A simple daemon that listens to a Discord server/channels and publishes the messages to a LaMetric clock.
$ go get -u github.com/kylegrantlucas/discord-lametric
$ env DISCORD_EMAIL=xxxx DISCORD_PASSWORD=xxxx DISCORD_SERVER_ID=xxxx LAMETRIC_IP=xxxx LAMETRIC_API_KEY=xxx discord-lametric
$ docker run -e DISCORD_EMAIL=xxxx -e DISCORD_PASSWORD=xxxx -e DISCORD_SERVER_ID=xxxx -e LAMETRIC_IP=xxxx -e LAMETRIC_API_KEY=xxx kylegrantlucas/discord-lametric
discord-lametric:
container_name: discord-lametric
image: kylegrantlucas/discord-lametric
environment:
- DISCORD_EMAIL=xxxx
- DISCORD_PASSWORD=xxxx
- LAMETRIC_IP=xxxx
- LAMETRIC_API_KEY=xxxx
- LAMETRIC_ICON_ID=xxxx
- DISCORD_SERVER_ID=xxxxx
- DISCORD_CHANNELS=xxxx,xxxx
restart: unless-stopped
To limit the channels you listen to, simply pass teh environment variable DISCORD_CHANNEL
with a comma seperate list of channels to listen on.
Example:
DISCORD_CHANNEL=general,offtopic
To specify a custom icon for the LaMetric notifications, set LAMETRIC_ICON_ID
:
Example:
LAMETRIC_ICON_ID=24240