From 8e64f9a07c4af05bae9268d602011b3e14a3df0a Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Wed, 1 Nov 2017 02:41:32 +0100 Subject: [PATCH] small changes --- NadekoBot.Core/Modules/Administration/PruneCommands.cs | 2 +- NadekoBot.Core/Modules/Gambling/DiceRollCommands.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/NadekoBot.Core/Modules/Administration/PruneCommands.cs b/NadekoBot.Core/Modules/Administration/PruneCommands.cs index 5fa42f28..089c2c4b 100644 --- a/NadekoBot.Core/Modules/Administration/PruneCommands.cs +++ b/NadekoBot.Core/Modules/Administration/PruneCommands.cs @@ -13,7 +13,7 @@ namespace NadekoBot.Modules.Administration [Group] public class PruneCommands : NadekoSubmodule { - private readonly TimeSpan twoWeeks = TimeSpan.FromDays(14); + private static readonly TimeSpan twoWeeks = TimeSpan.FromDays(14); //delets her own messages, no perm required [NadekoCommand, Usage, Description, Aliases] diff --git a/NadekoBot.Core/Modules/Gambling/DiceRollCommands.cs b/NadekoBot.Core/Modules/Gambling/DiceRollCommands.cs index 0374ce95..08fd7f4f 100644 --- a/NadekoBot.Core/Modules/Gambling/DiceRollCommands.cs +++ b/NadekoBot.Core/Modules/Gambling/DiceRollCommands.cs @@ -20,10 +20,10 @@ namespace NadekoBot.Modules.Gambling [Group] public class DriceRollCommands : NadekoSubmodule { - private readonly Regex dndRegex = new Regex(@"^(?\d+)d(?\d+)(?:\+(?\d+))?(?:\-(?\d+))?$", RegexOptions.Compiled); - private readonly Regex fudgeRegex = new Regex(@"^(?\d+)d(?:F|f)$", RegexOptions.Compiled); + private static readonly Regex dndRegex = new Regex(@"^(?\d+)d(?\d+)(?:\+(?\d+))?(?:\-(?\d+))?$", RegexOptions.Compiled); + private static readonly Regex fudgeRegex = new Regex(@"^(?\d+)d(?:F|f)$", RegexOptions.Compiled); - private readonly char[] _fateRolls = { '-', ' ', '+' }; + private static readonly char[] _fateRolls = { '-', ' ', '+' }; private readonly IImagesService _images; public DriceRollCommands(IImagesService images)