Fixes for ALICE Chatbot, adding Wolfram math support

This commit is contained in:
DarkFeather
2017-01-12 12:26:14 -06:00
parent df636e8706
commit 9332181125
3 changed files with 13 additions and 1 deletions

2
math-support.bash Normal file
View File

@@ -0,0 +1,2 @@
#!/bin/bash
lynx -connect_timeout=3 -read_timeout=3 --dump 'http://m.wolframalpha.com/input/?i='"$(echo $1 | sed 's/+/%2B/g' | tr ' ' '+')"'&x=0&y=0' | cat -n | grep 21 | head -n 1 | xargs | cut -f 2 -d ' '