Example #1
0
class ASCIIPlugin(WillPlugin):
    def __init__(self, *args, **kwargs):
        self.ascii_art = ASCIIArt()
        return WillPlugin.__init__(self, *args, **kwargs)

    @respond_to("^ascii me (?P<text>.*?)$")
    def ascii_me(self, message, text):
        "ascii me ___: Say ___ using a random ascii font"
        art = self.ascii_art.render(text)
        self.say('<pre>%s</pre>' % art, message=message, html=True)
Example #2
0
class ASCIIPlugin(WillPlugin):

    def __init__(self, *args, **kwargs):
        self.ascii_art = ASCIIArt()
        return WillPlugin.__init__(self, *args, **kwargs)

    @respond_to("^ascii me (?P<text>.*?)$")
    def ascii_me(self, message, text):
        "ascii me ___: Say ___ using a random ascii font"
        art = self.ascii_art.render(text)
        self.say('<pre>%s</pre>' % art, message=message, html=True)
Example #3
0
 def __init__(self, *args, **kwargs):
     self.ascii_art = ASCIIArt()
     return WillPlugin.__init__(self, *args, **kwargs)
Example #4
0
 def __init__(self, *args, **kwargs):
     self.ascii_art = ASCIIArt()
     return WillPlugin.__init__(self, *args, **kwargs)