Skip to content

[WIP] Modular customizable voice command-line virtual assistant.

Notifications You must be signed in to change notification settings

mohabmes/Watari

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Watari

Modular voice command-line virtual assistant.

How to write custom module

from core.Module import Module

class CustomModule(Module):
    priority = 0
    disable = False

    def __init__(self):
        self.keywords = ['Custom', 'Module'] # Keywords to activate this module whenever called.

    def get_keywords(self):
        return self.keywords

    def get_priority(self):
        return self.priority

    def loop(self, keyword):
        # Do something every 30 minutes.
        pass

    def start(self, keyword):
         # Do something when any of the keywords is called.
         pass
  • Add the class to /modules directory.
  • Register your CustomModule class to /modules/__init__.py
  • Take a look at Time module.

Read additional configs

  • To read the additional config array of a certain custom module use get_config() specified in config/config.json file.

About

[WIP] Modular customizable voice command-line virtual assistant.

Topics

Resources

Stars

Watchers

Forks

Languages