raumgirl/plugins/Flipdot/plugin.py

25 lines
709 B
Python
Raw Normal View History

2015-10-23 14:46:09 +00:00
###
# Copyright (c) 2011, fionera
2015-10-23 14:46:09 +00:00
# All rights reserved.
###
from threading import Event, Thread
2015-11-13 19:22:20 +00:00
import os
2015-10-23 14:46:09 +00:00
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
2015-10-23 14:46:09 +00:00
class Flipdot(callbacks.Plugin):
def __init__(self, irc):
self.__parent = super(Flipdot, self)
self.__parent.__init__(irc)
2015-11-13 19:22:20 +00:00
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'])