Skip to content

Commit

Permalink
Refactor to remove mycroft module imports
Browse files Browse the repository at this point in the history
Ensure all dependencies are listed in `requirements.txt`
  • Loading branch information
NeonDaniel committed May 10, 2024
1 parent 9050cfc commit be56ea5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 4 additions & 5 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@
from neon_utils.message_utils import dig_for_message
from neon_utils.skills.neon_skill import NeonSkill
from neon_utils.validator_utils import numeric_confirmation_validator

from mycroft.skills import intent_handler, intent_file_handler
from ovos_workshop.decorators import intent_handler


class SystemCommand(Enum):
Expand Down Expand Up @@ -111,17 +110,17 @@ def handle_exit_shutdown_intent(self, message):
elif response:
self._do_exit_shutdown(action)

@intent_file_handler("exit.intent")
@intent_handler("exit.intent")
def handle_exit_intent(self, message):
message.data['exit'] = True
self.handle_exit_shutdown_intent(message)

@intent_file_handler("restart.intent")
@intent_handler("restart.intent")
def handle_restart_intent(self, message):
message.data['restart'] = True
self.handle_exit_shutdown_intent(message)

@intent_file_handler("shutdown.intent")
@intent_handler("shutdown.intent")
def handle_shutdown_intent(self, message):
message.data['shutdown'] = True
self.handle_exit_shutdown_intent(message)
Expand Down
4 changes: 3 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
neon-utils~=1.0
ovos-utils~=0.0, >=0.0.28
ovos-bus-client~=0.0.3
ovos-bus-client~=0.0.3
ovos-workshop~=0.0.15
adapt-parser<2.0,>=0.5

0 comments on commit be56ea5

Please sign in to comment.