Skip to content

Commit 7b5dbed

Browse files
committed
Added set scenarios script.
1 parent 1be3f24 commit 7b5dbed

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

Scenarios/COVID-19 Assessment.scenario.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"yLocation": 60,
1818
"next": "cace401dfe02-61d5f27faaca275a-bb18"
1919
},
20-
"text": "Demo - Hi, I'm here to guide you through the Coronavirus Assessment Tool.\r\n\r\nIf you’re experiencing a life- or limb-threatening emergency, call [911](tel:911) or the number for your local emergency service.\r\n\r\nI’m not a substitute for professional medical advice, diagnosis, or treatment. Always consult a medical professional for serious symptoms or emergencies.",
20+
"text": "Hi, I'm here to guide you through the Coronavirus Assessment Tool.\r\n\r\nIf you’re experiencing a life- or limb-threatening emergency, call [911](tel:911) or the number for your local emergency service.\r\n\r\nI’m not a substitute for professional medical advice, diagnosis, or treatment. Always consult a medical professional for serious symptoms or emergencies.",
2121
"stringId": "stringId_16f852e50d202222",
2222
"label": "Welcome"
2323
},

setScenarios.ps1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# https://github.com/rajivharris/Set-PsEnv
2+
Import-Module -Name ./Scripts/Set-PsEnv/;
3+
# Import the contents of .env file into $env.
4+
Set-PsEnv
5+
6+
Import-Module -Name ./Scripts/ScenarioImportExport/HCBotScenarioIE/;
7+
# Export Scenarios from the bot instance specified in .env variables to the ./Scenarios folder.
8+
Set-HCBScenario -FromFolder ./Scenarios -Tenant $env:SOURCE_TENANT_NAME -JwtSecret $env:SOURCE_JWT_SECRET -InformationAction Continue;

0 commit comments

Comments
 (0)