wuvt: remove DJ prefix

master
mutantmonkey 2015-03-20 19:16:39 -07:00
parent d963ac2e70
commit df08d3e401
2 changed files with 2 additions and 6 deletions

View File

@ -16,6 +16,6 @@ class TestWuvt(unittest.TestCase):
wuvt(self.phenny, None)
out = self.phenny.say.call_args[0][0]
m = re.match('^DJ .* is currently playing .* by .*$', out,
m = re.match('^.* is currently playing .* by .*$', out,
flags=re.UNICODE)
self.assertTrue(m)

View File

@ -17,12 +17,8 @@ def wuvt(phenny, input):
except:
raise GrumbleError("Failed to fetch current track from WUVT")
dj = trackinfo['dj'].strip()
if dj[0:3] != 'DJ ':
dj = 'DJ {}'.format(dj)
phenny.say("{dj} is currently playing {title} by {artist}".format(
dj=dj,
dj=trackinfo['dj'].strip(),
title=trackinfo['title'].strip(),
artist=trackinfo['artist'].strip()))
wuvt.commands = ['wuvt']