Discord bot that does API requests to retrieve a collection of daily achievements for the next day and pushes an alert when any that is in a watchlist shows up.
A lot of code present in the DatabaseService.cs file turned out to have had a lot of repeating code.
Solution was to define two generic private method helpers that significantly reduced a lot of the code. A lot of the public methods are now more readable than before.
XML documentation comments were also added to methods that had lacked them previously.
A lot of code present in the
DatabaseService.cs
file turned out to have had a lot of repeating code.Solution was to define two generic private method helpers that significantly reduced a lot of the code. A lot of the public methods are now more readable than before.
XML documentation comments were also added to methods that had lacked them previously.