Skip to content

Commit

Permalink
Merge branch 'master' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
minisbett committed Dec 26, 2023
2 parents 2ccc0a9 + d9ca128 commit 8fbbc9b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 0 additions & 2 deletions huisbot/Embeds.cs
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,6 @@ public static Embed ScoreRankings(HuisScore[] allScores, HuisRework rework, int
HuisScore[] scores = allScores.Skip((page - 1) * 10).Take(10).ToArray();

// Generate the embed description.
string osuProfile = $"";
string huisProfile = $"";
List<string> description = new List<string>()
{
$"*{rework.Name}*",
Expand Down
2 changes: 1 addition & 1 deletion huisbot/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class Program
/// <summary>
/// The version of the application.
/// </summary>
public const string VERSION = "1.4.2";
public const string VERSION = "1.4.3";

/// <summary>
/// The startup time of the application.
Expand Down
4 changes: 4 additions & 0 deletions huisbot/Services/OsuApiService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,10 @@ public async Task<bool> EnsureAccessTokenAsync()
/// <returns>The score with the specified ID./returns>
public async Task<OsuScore?> GetScoreAsync(int rulesetId, long scoreId)
{
// Make sure a valid access token exists. If not, return null.
if (!await EnsureAccessTokenAsync())
return null;

// Get the string version of the ruleset ID.
string ruleset = rulesetId switch
{
Expand Down

0 comments on commit 8fbbc9b

Please sign in to comment.