Browse Source

mpdbot: show icecast site in the output

keep-around/4bf922eef0877db69162f6000a8a51568c133692
Brian S. Stephan 6 years ago
parent
commit
4bf922eef0
  1. 1
      dr_botzo/settings.py
  2. 2
      mpdbot/ircplugin.py

1
dr_botzo/settings.py

@ -189,6 +189,7 @@ KARMA_IGNORE_COMMAND_TARGETS = []
MPD_HOST = ""
MPD_PORT = None
MPD_PASS = None
MPD_SITE = ""
# storycraft

2
mpdbot/ircplugin.py

@ -52,7 +52,7 @@ class MpdBot(Plugin):
title = current.get('title', "Unknown")
album = current.get('album', "Unknown")
np = "{0:s} - {1:s} [{2:s}]".format(artist, title, album)
np = "{0:s} - {1:s} [{2:s}] 14[{3:s}]".format(artist, title, album, settings.MPD_SITE)
return self.bot.reply(event, np, stop=True)
else:
return self.bot.reply(event, "something's playing, but i don't know what!?", stop=True)

Loading…
Cancel
Save