raumgirl/plugins/Flipdot/plugin.py

27 lines
792 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
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)
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)