Skip to content

Commit

Permalink
Change deployment output
Browse files Browse the repository at this point in the history
  • Loading branch information
Crynners committed Aug 31, 2021
1 parent 5a42731 commit 7ebfab8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CryptoBotFunction/install_script.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -433,13 +433,18 @@ if( $null -eq $DeployAzureFunctionResult ){

Write-Host "[Step 9 / 9] Function app deployment -> DONE" -ForegroundColor cyan

if ( ($NCronTabExpression -eq $null) -or ($NCronTabExpression -eq '')) {
$DeploymentResult = " => The AccBot bot is already deployed and should now start buying " + $Currency + " at " + $randomMinutes + ". minute every " + $NextHour + "hour."
}else{
$DeploymentResult = " => The AccBot bot is already deployed and should now start buying " + $Currency + " by NCRONTAB '" + $NCronTabExpression + "' expression. Check the details https://ncrontab.swimburger.net/"
}

#Zobrazit výstup co se stalo
$output = "The following entities were successfully created in Azure: `n`t ResourceGroup: " + $resourceGroupName + "`n"`
+ "`t CosmosDBAccount: " + $cosmosDBAccountName + "`n"`
+ "`t Azure storage: " + $storageAccountName + "`n"`
+ "`t Azure function: " + $azFunctionName + "`n"`
+ " => The AccBot bot is already deployed and should now start buying " + $Currency + " at " + $randomMinutes + ". minute every " + $NextHour + "hour."
+ $DeploymentResult

Write-Host $output -ForegroundColor green
pause
Expand Down

0 comments on commit 7ebfab8

Please sign in to comment.