Exemple #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)
Exemple #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)
Exemple #3
0
 def __init__(self, *args, **kwargs):
     self.ascii_art = ASCIIArt()
     return WillPlugin.__init__(self, *args, **kwargs)
Exemple #4
0
 def __init__(self, *args, **kwargs):
     self.ascii_art = ASCIIArt()
     return WillPlugin.__init__(self, *args, **kwargs)