diff options
Diffstat (limited to 'actions/wolfram.py')
-rw-r--r-- | actions/wolfram.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/actions/wolfram.py b/actions/wolfram.py new file mode 100644 index 0000000..97e9c70 --- /dev/null +++ b/actions/wolfram.py @@ -0,0 +1,10 @@ +import os +import base64 + + +# noinspection PyUnresolvedReferences +def _action_wolfram(_input): + result = subprocess.run('node wolfram.js \"' + base64.b64encode(_input.encode("utf-8")).decode('utf-8') + '\"', + shell=True, check=True, capture_output=True).stdout.decode('utf-8').strip() + say(result) + return |