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