Salt-Lake-City-ARTCC / ZLC-Online-Bot

A Discord bot for the VATSIM ZLC Discord server. This bot sends/updates an embedded message inside the "online-atc" channel with information about controllers that are currently online.
GNU General Public License v3.0
2 stars 1 forks source link

[FEAT.] - msg in embed when vatusa api is down #8

Closed Nikolai558 closed 1 year ago

Nikolai558 commented 1 year ago

Is your feature request related to a problem? Please describe. Names are not getting changed in the discord msg embed when the api is down.

Describe the solution you'd like When the VATUSA api is down (i.e. returning 525 error) place a message in the discord embed that the service is down and name changes are not available.

This could be fixed in this bit of code: https://github.com/Salt-Lake-City-ARTCC/ZLC-Online-Bot/blob/237826bc4674a8760eb12231769a645956841c3c/ZLCBotCore/Services/VatsimApiService.cs#L186

Nikolai558 commented 1 year ago

Actually we would probably want to place the code in this line: https://github.com/Salt-Lake-City-ARTCC/ZLC-Online-Bot/blob/237826bc4674a8760eb12231769a645956841c3c/ZLCBotCore/Services/VatsimApiService.cs#L239