Compare commits

...

2 Commits

Author SHA1 Message Date
055cf79354 release: version 0.2.2 🚀
Some checks failed
Build Docker image / Create Release (push) Successful in 18s
CI / linter (9.0.X, ubuntu-latest) (push) Failing after 1m3s
CI / tests_linux (9.0.X, ubuntu-latest) (push) Has been skipped
Build Docker image / deploy (push) Failing after 2m0s
SonarQube Scan / SonarQube Trigger (push) Has been cancelled
2025-05-18 11:39:32 +02:00
b4a893d936 fix: also send pick suggestion to the group, refs NOISSUE 2025-05-18 11:39:27 +02:00
3 changed files with 15 additions and 2 deletions

View File

@ -5,10 +5,22 @@ Changelog
(unreleased)
------------
Fix
~~~
- Also send pick suggestion to the group, refs NOISSUE. [Simon
Diesenreiter]
0.2.1 (2025-05-17)
------------------
Fix
~~~
- Fix Docker build, refs NOISSUE. [Simon Diesenreiter]
Other
~~~~~
0.2.0 (2025-05-17)
------------------

View File

@ -91,13 +91,14 @@ pickOfTheDayTimer.OnOccurence += async (s, ea) =>
if (mod > 0)
{
Console.WriteLine("Skipping pick of the day today!");
return;
return;
}
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;
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);

View File

@ -1 +1 @@
0.2.1
0.2.2