Skip to content

Commit

Permalink
change default for .year
Browse files Browse the repository at this point in the history
  • Loading branch information
th0mk committed Feb 2, 2025
1 parent 057fb4d commit 19e5c52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/FMBot.Bot/SlashCommands/PlaySlashCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ public async Task YearAsync(

var contextUser = await this._userService.GetUserSettingsAsync(this.Context.User);
var userSettings = await this._settingService.GetUser(user, contextUser, this.Context.Guild, this.Context.User, true);
var parsedYear = SettingService.GetYear(year?.ToString()).GetValueOrDefault(DateTime.UtcNow.AddDays(-90).Year);
var parsedYear = SettingService.GetYear(year?.ToString()).GetValueOrDefault(DateTime.UtcNow.AddDays(-30).Year);

try
{
Expand Down
2 changes: 1 addition & 1 deletion src/FMBot.Bot/TextCommands/LastFM/PlayCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ public async Task YearAsync([Remainder] string extraOptions = null)
var prfx = this._prefixService.GetPrefix(this.Context.Guild?.Id);

var userSettings = await this._settingService.GetUser(extraOptions, contextUser, this.Context);
var year = SettingService.GetYear(extraOptions).GetValueOrDefault(DateTime.UtcNow.AddDays(-90).Year);
var year = SettingService.GetYear(extraOptions).GetValueOrDefault(DateTime.UtcNow.AddDays(-30).Year);

try
{
Expand Down

0 comments on commit 19e5c52

Please sign in to comment.