-
Notifications
You must be signed in to change notification settings - Fork 2
Separate app.py into multiple files & better counting #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Separate app.py into many files, and make that counting now accepts mathematical expressions
Oops, not that config, but atleast its not my testing bot token...
|
Why does counting accept mathematical expressions? Just for fun? |
|
Also it's kind of hard to audit this, since it's such a large PR and |
yes |
Mandi's bot added it and i dont see a problem with it its kinda funny |
I was just curious. Make sure people can't crash the bot by spamming |
I didn't think of that |
|
I think it's safe: |
|
That's a string conversion error, according to that it was still calculated somehow?? Maybe it used an approximation or the library uses |
|
It turns out |
|
expr.py has protection against DoS attacks, maybe you should use that instead... |
Updated my bot to be a bit more strict on the math equations and accept some more symbols. |
My bad, didn't read the error message, and thanks for alternative, I'll implement that tomorrow |
self-explanatory
|
Hello? |
Separate app.py into multiple files, and make that counting now accepts mathematical expressions
I'm not sure that it works on 100%,