Skip to content

nivowski/Virtual-Assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Virtual-Assistant

Prequesties

  • python3
  • playsound python3
  • pyobjc

Install

On Mac:

pip3 install -r requirements.txt

On Windows or Linux:

pip install -r requirements.txt

Add your own command

Go to src/alysa/Command/defaultcommand.py Add your own function:

  • need a parameter request: request = {"auto" : new-string, "raw" : old-string}
  • new-string is the string that we removed all useless words, and old-string is the whole input
  • Then add information of your function in src/alysa/Command/tags.json
  • Then add your function in src/alysa/Config/commandlist.py

Example: defaultcommand.py:

def saySomething(request):
	string = request["auto"] # take the string that removed all useless words
	print(string) #

commandlist.py:

from alysa.Command import defaultcommand
list_command = [
	("src/alysa/Command/tags.json", defaultcommand.saySomething, "saySomething")
]

Run

./run.sh

or

run.bat

About

Forked from @ShintaroDesu

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages