From 70204b151cd36c24e9f6ed6b54cad36207d03a3d Mon Sep 17 00:00:00 2001 From: pocketjawa Date: Tue, 25 Dec 2018 00:58:53 -0500 Subject: [PATCH] Changed NP command to suit PVFM --- pocketbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pocketbot.py b/pocketbot.py index 506f121..53e93c4 100644 --- a/pocketbot.py +++ b/pocketbot.py @@ -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