Skip to content

Commit

Permalink
runtime requirements
Browse files Browse the repository at this point in the history
allow skill to load before we have internet
  • Loading branch information
JarbasAl committed May 30, 2024
1 parent 326f21c commit 54fea8f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions __init__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,29 @@
import os.path

from lingua_franca.parse import extract_datetime
from ovos_utils import classproperty
from ovos_utils.log import LOG
from ovos_utils.process_utils import RuntimeRequirements
from ovos_utils.time import now_local
from ovos_workshop.decorators import intent_handler
from ovos_workshop.intents import IntentBuilder
from ovos_workshop.skills.auto_translatable import UniversalSkill


class TodayInHistory(UniversalSkill):
@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,
)

def get_date(self, message):
utt = message.data.get("date") or message.data["utterance"]
Expand Down

0 comments on commit 54fea8f

Please sign in to comment.