figlet: and really try to trim newlines

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2023-11-06 21:15:52 -05:00
parent 234c0bb13d
commit b08031015e
Signed by: vbatts
GPG key ID: E30EFAA812C6E5ED

View file

@ -21,6 +21,6 @@ class FigletBot(Plugin):
fig = pyfiglet.Figlet(font=fontname)
msg = f'Rendering with: {fontname}\n\n```'
msg += fig.renderText(message)
msg += fig.renderText(message).strip()
msg += '```'
await evt.respond(msg)