2 changed files with 21 additions and 0 deletions
@ -0,0 +1,9 @@
|
||||
[Core] |
||||
Name = IceDJBot |
||||
Module = icedjbot |
||||
|
||||
[Python] |
||||
Version = 2+ |
||||
|
||||
[Documentation] |
||||
Description = A simple ErrBot plugin to use IceDJ |
@ -0,0 +1,12 @@
|
||||
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): |
||||
filename = IceDJBot.dj.download(args) |
||||
IceDJBot.dj.stream(filename) |
||||
return args |
Loading…
Reference in new issue