Skip to content
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

Added use of math funcs to calc #34

Merged
merged 4 commits into from Jul 18, 2019

Conversation

Zernerus
Copy link
Contributor

Added the use of mathematical functions to the calc plugin, without the danger of executing unwanted functions, tested in #ltch channel

Screenshot from 2019-07-18 20-47-56

Had to rename the Exception because of the math constant e.

Added safe functions to eval, making it possible to use math functions in expressions
Added allowed, safe functions to calc, needed to rename Exception to ex
since there already is a mathematical constant named e
Committed on wrong branch, this is a change for sphinx, not calc
@Zernerus
Copy link
Contributor Author

Oh and I'm from 🇩🇪 forgot to mention that in earlier PRs

@Abdur-rahmaanJ
Copy link
Member

@Zernerus add flag if not already added

@Abdur-rahmaanJ Abdur-rahmaanJ merged commit fef3874 into pyhoneybot:master Jul 18, 2019
@Zernerus Zernerus deleted the calc-plugin branch July 25, 2019 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants