Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
feat/runtime_requirements (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl authored Feb 9, 2023
1 parent e766454 commit 3973549
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
14 changes: 14 additions & 0 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,27 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from mycroft.skills.core import FallbackSkill, intent_handler
from ovos_utils.process_utils import RuntimeRequirements
from ovos_utils import classproperty


class StopSkill(FallbackSkill):

def initialize(self):
self.register_fallback(self.handle_fallback, 80)

@classproperty
def runtime_requirements(self):
return RuntimeRequirements(internet_before_load=False,
network_before_load=False,
gui_before_load=False,
requires_internet=False,
requires_network=False,
requires_gui=False,
no_internet_fallback=True,
no_network_fallback=True,
no_gui_fallback=True)

@intent_handler("stop.intent")
def handle_stop(self, message):
self.bus.emit(message.reply("mycroft.stop", {}))
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
ovos_utils
ovos-utils~=0.0, >=0.0.28a4
ovos_workshop~=0.0, >=0.0.11a4

0 comments on commit 3973549

Please sign in to comment.