From 584f069aa61dc3f25500a739b996806e5c65235b Mon Sep 17 00:00:00 2001 From: watano1168 Date: Tue, 16 Jan 2024 23:27:34 +0900 Subject: [PATCH] =?UTF-8?q?Format:=20=E6=9C=80=E5=BE=8C=E3=81=AB=E6=94=B9?= =?UTF-8?q?=E8=A1=8C=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Common/DiscordManager.cs | 2 +- Common/DiscordMessagePresenterBase.cs | 2 +- Common/PresenterBase.cs | 2 +- Common/RandomUtility.cs | 2 +- Common/SettingManager.cs | 2 +- Common/SilentManager.cs | 2 +- Common/TimeManager.cs | 2 +- Events/GachaCommandPresenter.cs | 2 +- Events/InteractReplyPresenter.cs | 2 +- Events/MessageUtility.cs | 2 +- Events/RareReplyPresenter.cs | 2 +- Events/SilentCommandPresenter.cs | 2 +- Program.cs | 2 +- Triggers/DiscordTrigger.cs | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/Common/DiscordManager.cs b/Common/DiscordManager.cs index f5717d7..0e1ef01 100644 --- a/Common/DiscordManager.cs +++ b/Common/DiscordManager.cs @@ -30,4 +30,4 @@ public static async Task ExecuteAsync(SocketUserMessage message, Func(this IEnumerable source) var array = source.ToArray(); return array[Random.Next(array.Length)]; } -} \ No newline at end of file +} diff --git a/Common/SettingManager.cs b/Common/SettingManager.cs index 853a74c..6853faf 100644 --- a/Common/SettingManager.cs +++ b/Common/SettingManager.cs @@ -16,4 +16,4 @@ public static string Get(string name) return Configuration[name] ?? throw new Exception($"Environment variable {name} is not set."); } -} \ No newline at end of file +} diff --git a/Common/SilentManager.cs b/Common/SilentManager.cs index 74e05e6..1664124 100644 --- a/Common/SilentManager.cs +++ b/Common/SilentManager.cs @@ -20,4 +20,4 @@ public static bool IsSilent(ulong userId) { return SilentUsers.TryGetValue(userId, out var expireTime) && !TimeManager.IsExpired(expireTime); } -} \ No newline at end of file +} diff --git a/Common/TimeManager.cs b/Common/TimeManager.cs index b524287..edfb6a9 100644 --- a/Common/TimeManager.cs +++ b/Common/TimeManager.cs @@ -18,4 +18,4 @@ public static bool IsExpired(DateTime time) { return GetNow() > time; } -} \ No newline at end of file +} diff --git a/Events/GachaCommandPresenter.cs b/Events/GachaCommandPresenter.cs index 7d5297c..80eedf0 100644 --- a/Events/GachaCommandPresenter.cs +++ b/Events/GachaCommandPresenter.cs @@ -34,4 +34,4 @@ protected override async Task MainAsync() if (RandomUtility.IsHit(MasterManager.ReplyRate) == false) return null; return MessageUtility.PickRandomMessage(); } -} \ No newline at end of file +} diff --git a/Events/InteractReplyPresenter.cs b/Events/InteractReplyPresenter.cs index 61a71ec..d74af19 100644 --- a/Events/InteractReplyPresenter.cs +++ b/Events/InteractReplyPresenter.cs @@ -14,4 +14,4 @@ protected override async Task MainAsync() await Message.ReplyAsync(MessageUtility.PickRandomMessage()); } } -} \ No newline at end of file +} diff --git a/Events/MessageUtility.cs b/Events/MessageUtility.cs index 825cda6..e5efbd6 100644 --- a/Events/MessageUtility.cs +++ b/Events/MessageUtility.cs @@ -18,4 +18,4 @@ public static string PickRandomMessage() return MasterManager.ReplyMessages[^1].message; } -} \ No newline at end of file +} diff --git a/Events/RareReplyPresenter.cs b/Events/RareReplyPresenter.cs index 32e86ed..64df73d 100644 --- a/Events/RareReplyPresenter.cs +++ b/Events/RareReplyPresenter.cs @@ -17,4 +17,4 @@ protected override async Task MainAsync() await Message.ReplyAsync(MessageUtility.PickRandomMessage()); } } -} \ No newline at end of file +} diff --git a/Events/SilentCommandPresenter.cs b/Events/SilentCommandPresenter.cs index ed7406d..0d2f4d4 100644 --- a/Events/SilentCommandPresenter.cs +++ b/Events/SilentCommandPresenter.cs @@ -13,4 +13,4 @@ protected override async Task MainAsync() MentionUtils.MentionUser(Message.Author.Id)); await Message.ReplyAsync(message); } -} \ No newline at end of file +} diff --git a/Program.cs b/Program.cs index 40dcc0c..3286ce5 100644 --- a/Program.cs +++ b/Program.cs @@ -19,4 +19,4 @@ private static async Task BuildAsync(string[] args) // 永久に待つ await Task.Delay(-1); } -} \ No newline at end of file +} diff --git a/Triggers/DiscordTrigger.cs b/Triggers/DiscordTrigger.cs index e641020..283985e 100644 --- a/Triggers/DiscordTrigger.cs +++ b/Triggers/DiscordTrigger.cs @@ -40,4 +40,4 @@ private static async Task OnMessageReceived(SocketMessage message) // 発言 await DiscordManager.ExecuteAsync(userMessage); } -} \ No newline at end of file +}