goatcorp / Plogon

Build system for Dalamud Plugins
7 stars 13 forks source link

Allow running without specifying Discord webhook #34

Closed NotNite closed 1 year ago

NotNite commented 1 year ago

Running Plogon without setting the environment variable throws

Unhandled exception: System.ArgumentNullException: The given webhook Url cannot be null or whitespace. (Parameter 'webhookUrl')
   at Discord.Webhook.DiscordWebhookClient.ParseWebhookUrl(String webhookUrl, UInt64& webhookId, String& webhookToken)
   at Discord.Webhook.DiscordWebhookClient..ctor(String webhookUrl, DiscordRestConfig config)
   at Discord.Webhook.DiscordWebhookClient..ctor(String webhookUrl)
   at Plogon.DiscordWebhook..ctor() in D:\code\c#\ffxiv\Plogon\Plogon\DiscordWebhook.cs:line 23

This just makes it optional. Also Plogon's code hasn't been ran under a formatter lol.

NotNite commented 1 year ago

Shit. I fucked up that format. :P