A Python library and example script that downloads an audio file via youtube-dl and streams it to an IceCast server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
319 B

from errbot import BotPlugin, botcmd
from icedj import IceDJ
class IceDJBot(BotPlugin):
# A simple ErrBot plugin to use IceDJ
dj = IceDJ()
def stream(self, msg, args):
fifo_path = '/tmp/icedjd.fifo'
with open(fifo_path, 'w') as f:
return args