Prevent NumExpr evaluation from breaking my bot (dpy)

58 views Asked by At

I have a bot and I am trying to make a math command, I am using numexprs eval which works great but I have an issue. When a user uses the math command on an insanely high number (f. e. 8287467846 * 72846871642847846) the bot breaks, so I had to restrict the command. Is there a way I can make it public without people being able to break my bot? I am open to any libraries or whatever.

Thank you in advance

0

There are 0 answers