betty icon indicating copy to clipboard operation
betty copied to clipboard

Idea. How to be more siri

Open clicman opened this issue 10 years ago • 0 comments

I am not ruby dev, so listen my idea: How to get Betty more siri? Let`s use google power. On command "what is my name" Betty performs google search request like:

what is my name pickhardt AND " betty / lib /" site:github.com filetype:rb

As result will be url/urls to module(s) where such phrase possible affects. File will be simple text file with commands annotated by groups of key words. Next Betty just parse key verb and execute command.

File example:

#name,my //It is common keywords

##user //target keyword(s)
whoami

##full,surname,first
finger $(whoami) | sed 's/.*: *//;q'


##where, directory
pwd

If query points common keywords only, executes first command. In my example betty will executw whoami command.

So it will be wery easy to write modules.

clicman avatar May 15 '14 18:05 clicman