raumgirl/plugins/Flipdot/plugin.py

25 lines
709 B
Python

###
# Copyright (c) 2011, fionera
# All rights reserved.
###
from threading import Event, Thread
import os
import subprocess
import supybot.utils as utils
from supybot.commands import *
import supybot.plugins as plugins
import supybot.ircutils as ircutils
import supybot.callbacks as callbacks
import supybot.ircmsgs as ircmsgs
import socket, time, httplib, urllib
class Flipdot(callbacks.Plugin):
def __init__(self, irc):
self.__parent = super(Flipdot, self)
self.__parent.__init__(irc)
def showtext(self, irc, msg, args, text):
#irc.reply("Zeigen nun: " + text)
os.system("curl raum.ctdo.de:8000 -F " + '"text=' + text + '"')
showtext = wrap(showtext, ['text'])