File tree 2 files changed +34
-6
lines changed
2 files changed +34
-6
lines changed Original file line number Diff line number Diff line change 22
22
23
23
from jarvis .skills .skill import AssistantSkill
24
24
from jarvis .utils .mongoDB import db
25
- from jarvis .utils .console import add_dashes
25
+ from jarvis .utils .console import headerize
26
26
27
27
basic_skills_format = """
28
28
-----------------------------------------------------------------------
@@ -58,7 +58,7 @@ def assistant_check(cls, **kwargs):
58
58
"""
59
59
Responses that assistant can hear the user.
60
60
"""
61
- cls .response ('Yes, I hear you !' )
61
+ cls .response ('Hey human !' )
62
62
63
63
@classmethod
64
64
def tell_the_skills (cls , ** kwargs ):
@@ -79,13 +79,13 @@ def assistant_help(cls, **kwargs):
79
79
Assistant help prints valuable information about the application.
80
80
81
81
"""
82
- cls .console (add_dashes ('Help' ))
82
+ cls .console (headerize ('Help' ))
83
83
response_base = ''
84
84
try :
85
85
response = cls ._create_skill_response (response_base )
86
86
cls .console (response )
87
87
except Exception as e :
88
- logging . error ( "Error with the execution of skill with message {0}" .format (e ))
88
+ cls . console ( error_log = "Error with the execution of skill with message {0}" .format (e ))
89
89
cls .response ("Sorry I faced an issue" )
90
90
91
91
@classmethod
Original file line number Diff line number Diff line change 121
121
{
122
122
'enable' : True ,
123
123
'func' : AssistantInfoSkills .assistant_check ,
124
- 'tags' : 'hear, hey, are you there ' ,
125
- 'description' : 'Tells the current location '
124
+ 'tags' : 'hey, hi ' ,
125
+ 'description' : 'User check if assistant works '
126
126
},
127
127
128
128
{
280
280
'description' : 'Change the assistant setting values'
281
281
},
282
282
283
+ {
284
+ 'enable' : True ,
285
+ 'func' : UtilSkills .increase_master_volume ,
286
+ 'tags' : 'increase volume, volume up, speak louder' ,
287
+ 'description' : 'Increases the speakers master volume'
288
+ },
289
+
290
+ {
291
+ 'enable' : True ,
292
+ 'func' : UtilSkills .reduce_master_volume ,
293
+ 'tags' : 'reduce volume, volume down' ,
294
+ 'description' : 'Decreases the speakers master volume'
295
+ },
296
+
297
+ {
298
+ 'enable' : True ,
299
+ 'func' : UtilSkills .mute_master_volume ,
300
+ 'tags' : 'mute' ,
301
+ 'description' : 'Mutes the speakers master volume'
302
+ },
303
+
304
+ {
305
+ 'enable' : True ,
306
+ 'func' : UtilSkills .max_master_volume ,
307
+ 'tags' : 'volume max' ,
308
+ 'description' : 'Set max the speakers master volume'
309
+ },
310
+
283
311
]
284
312
285
313
# Add name key in both BASIC_SKILLS and CONTROL_SKILLS
You can’t perform that action at this time.
0 commit comments