Compare commits
5 Commits
0.2.3
...
0135b89f01
Author | SHA1 | Date | |
---|---|---|---|
0135b89f01 | |||
8c1bbc9866 | |||
8100998732 | |||
4a77a0d33a | |||
3acd4ad9d9 |
@@ -14,5 +14,6 @@ RUN dotnet publish ./song_of_the_day/song_of_the_day.csproj -o out
|
||||
# Build runtime image
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:9.0
|
||||
WORKDIR /App
|
||||
RUN apt update && apt install libldap-2.5-0 -y
|
||||
COPY --from=build /App/out .
|
||||
ENTRYPOINT ["dotnet", "song_of_the_day.dll"]
|
||||
|
23
HISTORY.md
23
HISTORY.md
@@ -5,10 +5,33 @@ Changelog
|
||||
(unreleased)
|
||||
------------
|
||||
|
||||
Fix
|
||||
~~~
|
||||
- Install dependencies in runtime container not only build container,
|
||||
refs NOISSUE. [Simon Diesenreiter]
|
||||
|
||||
|
||||
0.2.4 (2025-05-18)
|
||||
------------------
|
||||
|
||||
Fix
|
||||
~~~
|
||||
- Build errors, refs NOISSUE. [Simon Diesenreiter]
|
||||
|
||||
Other
|
||||
~~~~~
|
||||
|
||||
|
||||
0.2.3 (2025-05-18)
|
||||
------------------
|
||||
|
||||
Fix
|
||||
~~~
|
||||
- Resolve linting errors, refs NOISSUE. [Simon Diesenreiter]
|
||||
|
||||
Other
|
||||
~~~~~
|
||||
|
||||
|
||||
0.2.2 (2025-05-18)
|
||||
------------------
|
||||
|
@@ -27,7 +27,6 @@ userCheckTimer.OnOccurence += async (s, ea) =>
|
||||
var needsSaving = false;
|
||||
foreach (var memberId in memberList)
|
||||
{
|
||||
Console.WriteLine("found member: " + memberId);
|
||||
var foundUser = dci.Users.Where(u => u.SignalMemberId == memberId).SingleOrDefault();
|
||||
if (foundUser == null)
|
||||
{
|
||||
@@ -97,10 +96,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);
|
||||
};
|
||||
|
@@ -1 +1 @@
|
||||
0.2.3
|
||||
0.2.5
|
||||
|
Reference in New Issue
Block a user