Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
055cf79354 | |||
b4a893d936 | |||
31af2e3238 | |||
4f4cda622f |
@@ -4,7 +4,7 @@ WORKDIR /App
|
||||
# Copy everything
|
||||
COPY . ./
|
||||
|
||||
RUN apt upgrade && apt install libldap -y
|
||||
RUN apt update && apt install libldap-2.5-0 -y
|
||||
|
||||
# Restore as distinct layers
|
||||
RUN dotnet restore ./song_of_the_day/song_of_the_day.csproj
|
||||
|
20
HISTORY.md
20
HISTORY.md
@@ -4,6 +4,26 @@ 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)
|
||||
------------------
|
||||
- Feat: add user management, refs NOISSUE. [Simon Diesenreiter]
|
||||
- Feat(auth): initial auth added part 2, refs NOISSUE. [Simon
|
||||
Diesenreiter]
|
||||
|
@@ -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);
|
||||
|
@@ -1 +1 @@
|
||||
0.2.0
|
||||
0.2.2
|
||||
|
Reference in New Issue
Block a user