27 lines
792 B
Python
27 lines
792 B
Python
###
|
|
# Copyright (c) 2011, fionera
|
|
# All rights reserved.
|
|
###
|
|
from threading import Event, Thread
|
|
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 text(self, irc, msg, args):
|
|
irc.reply("Zeigen nun: " + "Wer das liest ist doof")
|
|
conn = httplib.HTTPConnection("raum.ctdo.de:8000")
|
|
conn.request("POST", "text=" + "Wer das liest ist doof")
|
|
response = conn.getresponse()
|
|
conn.close()
|
|
text = wrap(text) |