Changed NP command to suit PVFM
parent
9d33574064
commit
70204b151c
|
@ -288,7 +288,7 @@ def on_message(message):
|
||||||
|
|
||||||
#Load JSON from stream APIs
|
#Load JSON from stream APIs
|
||||||
nprequest = requests.get(metadataurl)
|
nprequest = requests.get(metadataurl)
|
||||||
npobject = json.loads(nprequest.text)
|
npobject = json.loads(nprequest.text)['icestats']['source']
|
||||||
icerequest = requests.get(iceurl)
|
icerequest = requests.get(iceurl)
|
||||||
iceobject = json.loads(icerequest.text)
|
iceobject = json.loads(icerequest.text)
|
||||||
|
|
||||||
|
@ -313,7 +313,7 @@ def on_message(message):
|
||||||
output += "\nListeners: {} ".format(listenersum)
|
output += "\nListeners: {} ".format(listenersum)
|
||||||
|
|
||||||
#Set embed and send the message
|
#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)
|
yield from client.send_message(message.channel, embed=npem)
|
||||||
|
|
||||||
#Post a random mix
|
#Post a random mix
|
||||||
|
|
Loading…
Reference in New Issue