Update wuvt.py

Don't put redundant 'DJ ' in now playing
master
Matt Hazinski 2014-11-07 21:40:04 -05:00
parent 8654e7093f
commit 2e7cf02c72
1 changed files with 6 additions and 2 deletions

View File

@ -28,8 +28,12 @@ def wuvt(phenny, input):
dj = r_dj.search(djpage).group(1)
if song and artist:
phenny.reply('DJ {0} is currently playing: {1} by {2}'
.format(dj.strip(), song.strip(), artist.strip()))
if dj[0:3] == 'DJ ':
phenny.reply('{0} is currently playing: {1} by {2}'
.format(dj.strip(), song.strip(), artist.strip()))
else:
phenny.reply('DJ {0} is currently playing: {1} by {2}'
.format(dj.strip(), song.strip(), artist.strip()))
else:
phenny.reply('Cannot connect to wuvt')
wuvt.commands = ['wuvt']