reorganize codebase. Add in more of the framework for adding skills.
parent
483ba60fa9
commit
0f085b0eb4
@ -0,0 +1,4 @@
|
||||
# Natural Language Processing using something like https://spacy.io
|
||||
|
||||
# this will allow us to figure out what the query means
|
||||
# i.e we might not have to add the word "wolfram" into a query to send it to wolfram...
|
@ -0,0 +1,17 @@
|
||||
from skills.alarms import Alarms
|
||||
from skills.cal import Cal
|
||||
from skills.gmail import Gmail
|
||||
from skills.gpt import GPT
|
||||
from skills.reminders import Reminders
|
||||
from skills.timers import Timers
|
||||
from skills.todos import Todos
|
||||
from skills.weather import Weather
|
||||
from skills.wolfram import Wolfram
|
||||
|
||||
skills = [GPT(), Alarms(), Cal(), Gmail(), Reminders(), Timers(), Todos(), Weather(), Wolfram()]
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
print("Skill Trigger Phrases: ")
|
||||
for skill in skills:
|
||||
print(skill.trigger_phrase)
|
@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
class Alarms:
|
||||
def __init__(self):
|
||||
self.trigger_phrase = "alarms"
|
@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
class Cal:
|
||||
def __init__(self):
|
||||
self.trigger_phrase = "calendar"
|
@ -0,0 +1 @@
|
||||
ntfy_url="jgjaifnfi"
|
@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
class Gmail:
|
||||
def __init__(self):
|
||||
self.trigger_phrase = "gmail"
|
@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
class GPT:
|
||||
def __init__(self):
|
||||
self.trigger_phrase = "gpt"
|
@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
class Reminders: # ntfy.sh notification?
|
||||
def __init__(self):
|
||||
self.trigger_phrase = "reminders"
|
@ -1,4 +1,4 @@
|
||||
from config import ntfy_url
|
||||
from skills.config import ntfy_url
|
||||
import requests
|
||||
|
||||
class Timers:
|
@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
class Todos: # Notion api?
|
||||
def __init__(self):
|
||||
self.trigger_phrase = "todos"
|
@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
class Weather: #open weather map api
|
||||
def __init__(self):
|
||||
self.trigger_phrase = "weather"
|
@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
class Wolfram: #wolfram alpha api
|
||||
def __init__(self):
|
||||
self.trigger_phrase = "wolfram"
|
@ -0,0 +1 @@
|
||||
# make requests to https://github.com/synesthesiam/opentts and play resulting wav file
|
Loading…
Reference in New Issue