From 63378f60aa6174a3e557c2b9a24098eca936faad Mon Sep 17 00:00:00 2001 From: zuckerberg <5-zuckerberg@users.noreply.git.neet.dev> Date: Mon, 23 Aug 2021 12:16:18 -0400 Subject: [PATCH] fix radio --- radio.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/radio.py b/radio.py index 0804371..49e888f 100644 --- a/radio.py +++ b/radio.py @@ -1,3 +1,5 @@ +import requests + host = "http://localhost:5000/" radioUrl = "https://radio.neet.space/stream.mp3" @@ -35,7 +37,7 @@ def play(i, irc): m = f"Usage: {i.cmd_prefix}{i.cmd} URL" irc.privmsg(i.channel, m) return - pload = {'url': message[len(".play "):]} + pload = {'url': i.msg_nocmd} r = requests.post(host+"play", data = pload) irc.privmsg(i.channel, r.text)