Add use of give-reply.ps1

This commit is contained in:
Markus Fleschutz
2021-12-06 17:00:49 +01:00
parent 589ba8e93c
commit 3a0cb4a001
38 changed files with 74 additions and 116 deletions

View File

@ -16,8 +16,7 @@
param([string]$abbreviation = "")
function Reply { param([string]$Text)
"$Text"
& "$PSScriptRoot/speak-english.ps1" "$Text"
& "$PSScriptRoot/give-reply.ps1" "$Text"
}
try {
@ -31,7 +30,7 @@ try {
foreach($Row in $Table) {
if ($Row.Abbreviation -eq $abbreviation) {
$Basename = (get-item "$File").Basename
Reply " - $($Row.Definition) ($($Row.Abbreviation)) in $Basename"
Reply "$($Row.Definition) ($($Row.Abbreviation)) in $Basename"
$FoundOne = $true
}
}