Update StackMonkey.ps1
This commit is contained in:
@@ -146,23 +146,12 @@ function Invoke-ScriptMonkey {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
# If we got here, it's the UI set—launch browser + listener:
|
||||
# ——— UI fallback starts here ———
|
||||
Write-LogHelper "Launching UI" Info Startup
|
||||
|
||||
|
||||
|
||||
# STACK = Scripted Tooling for Automated Client Kickoff
|
||||
# MONKEY = Module-based Onboarding & Next-step Kickoff Engine Yoke
|
||||
# Conveys the idea of coupling tasks together and keeping them under control.
|
||||
|
||||
|
||||
#region Config & Task Definitions
|
||||
|
||||
|
||||
|
||||
# Define every task once here:
|
||||
# Id → checkbox HTML `id`
|
||||
# Name → URL path (`/Name`)
|
||||
@@ -225,7 +214,7 @@ function Write-LogHelper {
|
||||
[int]$CustomEventID
|
||||
)
|
||||
$EventID = @{ Info=1000; Warning=2000; Error=3000; Success=4000; General=1000 }[$Level]
|
||||
$Icon = @{Info=[System.Char]::ConvertFromUtf32(0x1F4CB);Warning=[char]0x26A0;Error=[char]0x274C;Success=[char]0x2705;General=[char]0x1F4E6}[$Level]
|
||||
#$Icon = @{Info=[System.Char]::ConvertFromUtf32(0x1F4CB);Warning=[char]0x26A0;Error=[char]0x274C;Success=[char]0x2705;General=[char]0x1F4E6}[$Level]
|
||||
$logEntry = [PSCustomObject]@{
|
||||
Timestamp = (Get-Date).ToString("yyyy-MM-dd HH:mm:ss")
|
||||
Level = $Level
|
||||
@@ -258,6 +247,12 @@ if (Get-Command Write-Log -ErrorAction SilentlyContinue) {
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
# If we got here, it's the UI set—launch browser + listener:
|
||||
# ——— UI fallback starts here ———
|
||||
Write-LogHelper "Launching UI" Info Startup
|
||||
|
||||
|
||||
#region Handler Stubs
|
||||
|
||||
function Respond-Text {
|
||||
|
||||
Reference in New Issue
Block a user