-
Notifications
You must be signed in to change notification settings - Fork 1
/
registry.py
77 lines (63 loc) · 1.33 KB
/
registry.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import enum
from .collection import *
class CMD(enum.Enum):
TAGS = 0
FUNC = 1
CLASS = 2
assistant_commands = [
{
CMD.TAGS: 'voice',
CMD.FUNC: 'change_response_to_voice',
CMD.CLASS: AssistantSkills
},
{
CMD.TAGS: 'text',
CMD.FUNC: 'change_response_to_text',
CMD.CLASS: AssistantSkills
},
{
CMD.TAGS: 'wikipedia',
CMD.FUNC: 'wikipedia',
CMD.CLASS: BrowserSkills
},
{
CMD.TAGS: 'open',
CMD.FUNC: 'open_website_in_browser',
CMD.CLASS: BrowserSkills
},
{
CMD.TAGS: 'search',
CMD.FUNC: 'search_on_google',
CMD.CLASS: BrowserSkills
},
{
CMD.TAGS: 'weather',
CMD.FUNC: 'run',
CMD.CLASS: WeatherSkills
},
{
CMD.TAGS: 'remind',
CMD.FUNC: 'run',
CMD.CLASS: ReminderSkills
},
{
CMD.TAGS: 'synonyms',
CMD.FUNC: 'show_synonyms',
CMD.CLASS: BrowserSkills
},
{
CMD.TAGS: 'show calendar',
CMD.FUNC: 'display_events',
CMD.CLASS: CalendarSkills
},
{
CMD.TAGS: 'create event',
CMD.FUNC: 'create_event',
CMD.CLASS: CalendarSkills
},
{
CMD.TAGS: 'send email',
CMD.FUNC: 'run',
CMD.CLASS: EmailSkills
}
]