by singularity2001 · 12y ago · 0 comments
function genie(){ query=`printf "%s+" $@` echo $query result=`curl -s "https://weannie.pannous.com/api?out=simple&input=$query"` echo $result say $result 2>/dev/null } alias hey=genie alias how="genie how" alias what="genie what" alias when="genie when"
me:~$ what is the root of pi It is approximately 1.7725
me:~$ how old is obama Barack Obama is 52 years old
answer: Sydney.
hmm this is wrong, how to submit a fix for this?