diff --git a/jarviscli/plugins/notes.py b/jarviscli/plugins/notes.py new file mode 100644 index 000000000..1855ba3e4 --- /dev/null +++ b/jarviscli/plugins/notes.py @@ -0,0 +1,17 @@ +import os +from colorama import Fore +from plugin import plugin, require, LINUX, MACOS + +@require(native="gedit", platform=LINUX) +@plugin('open notes') +def open_notes__LINUX(jarvis, s): + """Jarvis will open the notes application for you.""" + jarvis.say("Opening notes.......", Fore.GREEN) + os.system("gedit") + +@require(platform=MACOS) +@plugin('open notes') +def open_notes__MAC(jarvis, s): + """Jarvis will open the Notes app for you.""" + jarvis.say("Opening Notes.......", Fore.GREEN) + os.system('open /Applications/Notes.app')