dump_patrons.ps1 344 B

12345678
  1. #!/usr/bin/env pwsh
  2. param([string]$csvPath)
  3. # Dumps Patreon's CSV download into a YAML file the game reads.
  4. # Have to trim patron names because apparently Patreon doesn't which is quite ridiculous.
  5. Get-content $csvPath | ConvertFrom-Csv -Delimiter "," | select @{l="Name";e={$_.Name.Trim()}},Tier | where-object Tier -ne "" | ConvertTo-Yaml