File size: 397 Bytes
3d3d712
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from taskweaver.plugin import Plugin, register_plugin


@register_plugin
class AsciiRenderPlugin(Plugin):
    def __call__(self, text: str):
        try:
            import pyfiglet
        except ImportError:
            raise ImportError("Please install pyfiglet first.")

        ASCII_art_1 = pyfiglet.figlet_format(text, font="isometric1")
        result = ASCII_art_1

        return result