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