Changed NP command to suit PVFM

dev
pocketjawa 2018-12-25 00:58:53 -05:00
parent 9d33574064
commit 70204b151c
1 changed files with 2 additions and 2 deletions

View File

@ -288,7 +288,7 @@ def on_message(message):
#Load JSON from stream APIs
nprequest = requests.get(metadataurl)
npobject = json.loads(nprequest.text)
npobject = json.loads(nprequest.text)['icestats']['source']
icerequest = requests.get(iceurl)
iceobject = json.loads(icerequest.text)
@ -313,7 +313,7 @@ def on_message(message):
output += "\nListeners: {} ".format(listenersum)
#Set embed and send the message
npem = discord.Embed(title="Now Playing on ToukuFM", description=output, url="https://toukufm.com/")
npem = discord.Embed(title="Now Playing on PonyvilleFM", description=output, url="https://ponyvillefm.com/")
yield from client.send_message(message.channel, embed=npem)
#Post a random mix