From 3acd4ad9d9b935fef9ac2b67280b850512dcf90d Mon Sep 17 00:00:00 2001 From: Simon Diesenreiter Date: Sun, 18 May 2025 11:44:01 +0200 Subject: [PATCH] fix: build errors, refs NOISSUE --- song_of_the_day/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/song_of_the_day/Program.cs b/song_of_the_day/Program.cs index 9ed8b4b..04fbd21 100644 --- a/song_of_the_day/Program.cs +++ b/song_of_the_day/Program.cs @@ -97,10 +97,10 @@ pickOfTheDayTimer.OnOccurence += async (s, ea) => var dci = DataContext.Instance; var luckyUser = await dci.Users.ElementAtAsync((new Random()).Next(await dci.Users.CountAsync())); var userName = string.IsNullOrEmpty(luckyUser.NickName) ? luckyUser.Name : luckyUser.NickName; + var suggestion = await dci.SuggestionHelpers.ElementAtAsync((new Random()).Next(await dci.SuggestionHelpers.CountAsync())); SignalIntegration.Instance.SendMessageToGroupAsync($"Today's chosen person to share a song is: **{userName}**"); SignalIntegration.Instance.SendMessageToGroupAsync($"Today's (optional) suggestion helper to help you pick a song is:\n\n**{suggestion.Title}**\n\n*{suggestion.Description}*"); SignalIntegration.Instance.SendMessageToUserAsync($"Congratulations, you have been chosen to share a song today!", luckyUser.SignalMemberId); - var suggestion = await dci.SuggestionHelpers.ElementAtAsync((new Random()).Next(await dci.SuggestionHelpers.CountAsync())); SignalIntegration.Instance.SendMessageToUserAsync($"Today's (optional) suggestion helper to help you pick a song is:\n\n**{suggestion.Title}**\n\n*{suggestion.Description}*", luckyUser.SignalMemberId); SignalIntegration.Instance.SendMessageToUserAsync($"For now please just share your suggestion with the group - in the future I might ask you to share directly with me or via the website to help me keep track of past suggestions!", luckyUser.SignalMemberId); };