“I am trying to make a bash function that will websearch and show result using aiml pattern on terminal. currently I can launch diffrent websites from my code but I can’t search results . for example I want to say(write a command) “google(look for) answer to life and the pattern should Create a new window in existing browser session and show the result for answer to life from the web ” or simply play this song * and play *x song on youtube is there a way to make it work ? here is my current aiml code
``
[/code] <pattern>OPEN GOOGLE</pattern>
<template>
<random>
<li>Sure thing! </li>
<li>Right away, ! </li>
<li>On it! </li>
</random>
<system> open -a "Google Chrome" http://GOOGLE.com</system>
</template>
</category>
<category>
<pattern>GOOGLE *</pattern>
<template>
<random>
<li>Sure thing! </li>
<li>Right away,! </li>
<li>On it! </li>
</random>
<system> open -a "Google Chrome" http://GOOGLE.com/search?q=<star/>"</system>
</template>
</category>
<category>
<pattern>SEARCH FOR * ON GOOGLE></pattern>
<template>
<srai>GOOGLE <star/></srai>
</template>
</category>
<category>
<pattern>SEARCH GOOGLE FOR *</pattern>
<template>
<srai>YOUTUBE <star/></srai>
</template>
</category>
</aiml>[code]
```