text: """Figlet plugin for Uniborg..
  \n\nCreated By @s_n_a_p_s
  Ported by @NeoMatrix90 (Legend)
  With the help of lejhand @r4v4n4"""
  import pyfiglet
  from uniborg.util import admin_cmd
  
  
  @borg.on(admin_cmd(pattern="figlet ?(.*)", allow_sudo=True))
  async def figlet(event):
      if event.fwd_from:
          return
      CMD_FIG = {
          "slant": "slant",
          "3D": "3-d",
          "5line": "5lineoblique",
          "alpha": "alphabet",
          "banner": "banner3-D",
          "doh": "doh",
          "iso": "isometric1",
          "letter": "letters",
          "allig": "alligator",
          "dotm": "dotmatrix",
          "bubble": "bubble",
          "bulb": "bulbhead",
          "digi": "digital"}
      input_str = event.pattern_match.group(1)
      if "|" in input_str:
          text, cmd = input_str.split("|", maxsplit=1)
      elif input_str is not None:
          cmd = None
          text = input_str
      else:
          await event.edit("Please add some text to figlet")
          return
      if cmd is not None:
          try:
              font = CMD_FIG[cmd]
          except KeyError:
              await event.edit("Invalid selected font.")
              return
          result = pyfiglet.figlet_format(text, font=font)
      else:
          result = pyfiglet.figlet_format(text)
      await event.respond("‌‌‎`{}`".format(result))
      await event.delete()
  