Commit ·
62d3481
1
Parent(s): b98ffb6
feature(#130): update command API response format
Browse files
Brain/src/commands/command.py
CHANGED
|
@@ -62,35 +62,35 @@ class CommandRegistry:
|
|
| 62 |
"Search a image that #description",
|
| 63 |
["#description"],
|
| 64 |
True,
|
| 65 |
-
)
|
| 66 |
Command(
|
| 67 |
"notification",
|
| 68 |
"send notification or alert",
|
| 69 |
"send that #notification",
|
| 70 |
["#notification"],
|
| 71 |
True,
|
| 72 |
-
)
|
| 73 |
Command(
|
| 74 |
"sms",
|
| 75 |
"send a sms",
|
| 76 |
"",
|
| 77 |
[],
|
| 78 |
True,
|
| 79 |
-
)
|
| 80 |
Command(
|
| 81 |
"browsing",
|
| 82 |
"search browser",
|
| 83 |
"Search something that #description",
|
| 84 |
["#description"],
|
| 85 |
True,
|
| 86 |
-
)
|
| 87 |
Command(
|
| 88 |
"social",
|
| 89 |
"search something in social",
|
| 90 |
"Search something in twitter or facebook that #description",
|
| 91 |
["#description"],
|
| 92 |
True,
|
| 93 |
-
)
|
| 94 |
]
|
| 95 |
|
| 96 |
def get_all_commands(self) -> Any:
|
|
|
|
| 62 |
"Search a image that #description",
|
| 63 |
["#description"],
|
| 64 |
True,
|
| 65 |
+
),
|
| 66 |
Command(
|
| 67 |
"notification",
|
| 68 |
"send notification or alert",
|
| 69 |
"send that #notification",
|
| 70 |
["#notification"],
|
| 71 |
True,
|
| 72 |
+
),
|
| 73 |
Command(
|
| 74 |
"sms",
|
| 75 |
"send a sms",
|
| 76 |
"",
|
| 77 |
[],
|
| 78 |
True,
|
| 79 |
+
),
|
| 80 |
Command(
|
| 81 |
"browsing",
|
| 82 |
"search browser",
|
| 83 |
"Search something that #description",
|
| 84 |
["#description"],
|
| 85 |
True,
|
| 86 |
+
),
|
| 87 |
Command(
|
| 88 |
"social",
|
| 89 |
"search something in social",
|
| 90 |
"Search something in twitter or facebook that #description",
|
| 91 |
["#description"],
|
| 92 |
True,
|
| 93 |
+
),
|
| 94 |
]
|
| 95 |
|
| 96 |
def get_all_commands(self) -> Any:
|