Browse Source

add basic functionality of errbot plugin

master
Shokara Kou 6 months ago
parent
commit
dfab30f31d
  1. 9
      icedjbot.plug
  2. 12
      icedjbot.py

9
icedjbot.plug

@ -0,0 +1,9 @@
[Core]
Name = IceDJBot
Module = icedjbot
[Python]
Version = 2+
[Documentation]
Description = A simple ErrBot plugin to use IceDJ

12
icedjbot.py

@ -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…
Cancel
Save