{# This needs to be in a templates subdirectory templates/biginfo.md #}
{{big}}
Ir meant to say: {{small}}
from errbot import BotPlugin, botcmd | |
from pyfiglet import Figlet | |
class AsciiArt(BotPlugin): | |
""" Ascii Art related commands. """ | |
@botcmd(template='biginfo') | |
def big(self, mess, args): | |
""" Generates a big version of what you want to say.""" | |
return {'small': args, 'big': Figlet(font='slant').renderText(args)} |
{# This needs to be in a templates subdirectory templates/biginfo.md #}
{{big}}
Ir meant to say: {{small}}