From 29e22acbc0d6f72f0382261be71e825ceb8b2d82 Mon Sep 17 00:00:00 2001 From: Daan Boerlage Date: Sat, 30 Oct 2021 15:48:28 +0200 Subject: [PATCH] Move the RollTimeout record to the shared commands project --- src/Bot/Commands/Games/Roll/Roll.cs | 1 + .../Games => Commands}/Roll/RollTimeout.cs | 18 +++++++++--------- src/Web/Commands/Roll.cs | 1 + src/Web/Commands/RollTimeout.cs | 9 --------- 4 files changed, 11 insertions(+), 18 deletions(-) rename src/{Bot/Commands/Games => Commands}/Roll/RollTimeout.cs (57%) delete mode 100644 src/Web/Commands/RollTimeout.cs diff --git a/src/Bot/Commands/Games/Roll/Roll.cs b/src/Bot/Commands/Games/Roll/Roll.cs index 172126b..a705dda 100644 --- a/src/Bot/Commands/Games/Roll/Roll.cs +++ b/src/Bot/Commands/Games/Roll/Roll.cs @@ -3,6 +3,7 @@ using System.Linq; using System.Threading.Tasks; using Discord.Commands; using Geekbot.Bot.Utils; +using Geekbot.Commands.Roll; using Geekbot.Core; using Geekbot.Core.Database; using Geekbot.Core.Database.Models; diff --git a/src/Bot/Commands/Games/Roll/RollTimeout.cs b/src/Commands/Roll/RollTimeout.cs similarity index 57% rename from src/Bot/Commands/Games/Roll/RollTimeout.cs rename to src/Commands/Roll/RollTimeout.cs index c53101a..d296c45 100644 --- a/src/Bot/Commands/Games/Roll/RollTimeout.cs +++ b/src/Commands/Roll/RollTimeout.cs @@ -1,10 +1,10 @@ -using System; - -namespace Geekbot.Bot.Commands.Games.Roll -{ - public class RollTimeout - { - public int LastGuess { get; set; } - public DateTime GuessedOn { get; set; } - } +using System; + +namespace Geekbot.Commands.Roll +{ + public record RollTimeout + { + public int LastGuess { get; set; } + public DateTime GuessedOn { get; set; } + } } \ No newline at end of file diff --git a/src/Web/Commands/Roll.cs b/src/Web/Commands/Roll.cs index 211faef..50b6f28 100644 --- a/src/Web/Commands/Roll.cs +++ b/src/Web/Commands/Roll.cs @@ -1,5 +1,6 @@ using System; using System.Threading.Tasks; +using Geekbot.Commands.Roll; using Geekbot.Core.Database; using Geekbot.Core.Interactions; using Geekbot.Core.Interactions.ApplicationCommand; diff --git a/src/Web/Commands/RollTimeout.cs b/src/Web/Commands/RollTimeout.cs deleted file mode 100644 index 5b23873..0000000 --- a/src/Web/Commands/RollTimeout.cs +++ /dev/null @@ -1,9 +0,0 @@ -using System; - -namespace Geekbot.Web.Commands; - -public record RollTimeout -{ - public int LastGuess { get; set; } - public DateTime GuessedOn { get; set; } -} \ No newline at end of file