from taskweaver.plugin import 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 | |