UQComputingSociety / uqcsbot-discord

:mortar_board: UQCSbot: Our friendly little Discord bot
https://discord.uqcs.org
MIT License
20 stars 20 forks source link

LaTeX: Added error checking for the equation #141

Closed 49Indium closed 1 year ago

49Indium commented 1 year ago

A small fix to catch when the equations cannot be rendered. Does slow down /latex slightly, as image is requested once by the bot and once by discord.

This partially solves #139, though we might need to consider running LaTeX on the bot's side in future (codecogs is a pretty average emulation of TeX IMO). I'd like to discuss the security and costs of this.