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)