-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from approvers/feature/rinia/era/001
Birth: 主張をもっと強くした
- Loading branch information
Showing
7 changed files
with
26 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace Approvers.King.Common; | ||
|
||
public static class EnumerableUtility | ||
{ | ||
public static IEnumerable<T> Repeat<T>(T value, int count) | ||
{ | ||
for (var i = 0; i < count; i++) yield return value; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build | ||
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build | ||
WORKDIR /App | ||
COPY . . | ||
RUN dotnet restore | ||
RUN dotnet publish -c Release -o out | ||
|
||
FROM mcr.microsoft.com/dotnet/runtime:7.0 AS runtime | ||
FROM mcr.microsoft.com/dotnet/runtime:8.0 AS runtime | ||
WORKDIR /App | ||
COPY --from=build /App/out . | ||
ENTRYPOINT ["dotnet", "king-server.dll"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,20 @@ | ||
using Approvers.King.Common; | ||
using Discord; | ||
|
||
namespace Approvers.King.Events; | ||
|
||
public class BirthPresenter : SchedulerJobPresenterBase | ||
{ | ||
private static readonly string Message = $""" | ||
{string.Join("", EnumerableUtility.Repeat(IssoUtility.SmileStamp, 16))} | ||
{IssoUtility.SmileStamp} {IssoUtility.SmileStamp} | ||
{IssoUtility.SmileStamp} ***† 誕 生 日 だ 祝 え カ ス †*** {IssoUtility.SmileStamp} | ||
{IssoUtility.SmileStamp} {IssoUtility.SmileStamp} | ||
{string.Join("", EnumerableUtility.Repeat(IssoUtility.SmileStamp, 16))} | ||
"""; | ||
|
||
protected override async Task MainAsync() | ||
{ | ||
var guild = DiscordManager.Client.GetGuild(SettingManager.DiscordTargetGuildId); | ||
var message = Format.Italics(Format.Bold(MasterManager.BirthdayMessage)); | ||
await guild.GetTextChannel(SettingManager.DiscordMainChannelId).SendMessageAsync(message); | ||
await guild.GetTextChannel(SettingManager.DiscordMainChannelId).SendMessageAsync(Message); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters