1
0
mirror of https://github.com/janvarev/Irene-Voice-Assistant.git synced 2025-11-26 22:50:58 +02:00

rename main classes to VACore. Use VA prefix everywhere

This commit is contained in:
janvarev
2021-12-15 12:53:52 +03:00
parent 89301dd924
commit 42b672e9f7
16 changed files with 68 additions and 88 deletions

View File

@@ -5,12 +5,12 @@
import os
from voiceasscore import VoiceAssCore
from vacore import VACore
modname = os.path.basename(__file__)[:-3] # calculating modname
# функция на старте
def start(core:VoiceAssCore):
def start(core:VACore):
manifest = {
"name": "Погода (open weather map)",
"version": "1.0",
@@ -32,7 +32,7 @@ def start(core:VoiceAssCore):
}
return manifest
def start_with_options(core:VoiceAssCore,manifest:dict):
def start_with_options(core:VACore, manifest:dict):
options = manifest["options"]
@@ -67,7 +67,7 @@ def start_with_options(core:VoiceAssCore,manifest:dict):
return
def run_weather(core:VoiceAssCore,phrase:str,addparam:str):
def run_weather(core:VACore, phrase:str, addparam:str):
options = core.plugin_options(modname)