From 3c1b994ab55528ea449e093345637fdffd9d0a6c Mon Sep 17 00:00:00 2001 From: Toastie Date: Sat, 21 Sep 2024 14:40:47 +1200 Subject: [PATCH] Updated Gambling module --- src/EllieBot/Modules/Gambling/AnimalRacing/AnimalRace.cs | 2 +- src/EllieBot/Modules/Gambling/GamblingConfig.cs | 2 +- src/EllieBot/Modules/Gambling/GamblingService.cs | 2 +- src/EllieBot/Modules/Gambling/PlantPick/PlantAndPickCommands.cs | 2 +- src/EllieBot/Modules/Gambling/_common/RollDuelGame.cs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/EllieBot/Modules/Gambling/AnimalRacing/AnimalRace.cs b/src/EllieBot/Modules/Gambling/AnimalRacing/AnimalRace.cs index 88f5eac..84f10d4 100644 --- a/src/EllieBot/Modules/Gambling/AnimalRacing/AnimalRace.cs +++ b/src/EllieBot/Modules/Gambling/AnimalRacing/AnimalRace.cs @@ -111,7 +111,7 @@ public sealed class AnimalRace : IDisposable _ = OnStarted?.Invoke(this); _ = Task.Run(async () => { - var rng = new NadekoRandom(); + var rng = new EllieRandom(); while (!_users.All(x => x.Progress >= 60)) { foreach (var user in _users) diff --git a/src/EllieBot/Modules/Gambling/GamblingConfig.cs b/src/EllieBot/Modules/Gambling/GamblingConfig.cs index 48f8729..5f6693a 100644 --- a/src/EllieBot/Modules/Gambling/GamblingConfig.cs +++ b/src/EllieBot/Modules/Gambling/GamblingConfig.cs @@ -54,7 +54,7 @@ public sealed partial class GamblingConfig : ICloneable [Comment(""" Amount of currency selfhosters will get PER pledged dollar CENT. - 1 = 100 currency per $. Used almost exclusively on public nadeko. + 1 = 100 currency per $. Used almost exclusively on public ellie. """)] public decimal PatreonCurrencyPerCent { get; set; } = 1; diff --git a/src/EllieBot/Modules/Gambling/GamblingService.cs b/src/EllieBot/Modules/Gambling/GamblingService.cs index 6b3bffa..f9a55bc 100644 --- a/src/EllieBot/Modules/Gambling/GamblingService.cs +++ b/src/EllieBot/Modules/Gambling/GamblingService.cs @@ -126,7 +126,7 @@ public class GamblingService : IEService, IReadyExecutor } } - private static readonly TypedKey _ecoKey = new("nadeko:economy"); + private static readonly TypedKey _ecoKey = new("ellie:economy"); private static readonly SemaphoreSlim _timelyLock = new(1, 1); diff --git a/src/EllieBot/Modules/Gambling/PlantPick/PlantAndPickCommands.cs b/src/EllieBot/Modules/Gambling/PlantPick/PlantAndPickCommands.cs index ab6a0bb..67994c8 100644 --- a/src/EllieBot/Modules/Gambling/PlantPick/PlantAndPickCommands.cs +++ b/src/EllieBot/Modules/Gambling/PlantPick/PlantAndPickCommands.cs @@ -72,7 +72,7 @@ public partial class Gambling [Cmd] [RequireContext(ContextType.Guild)] [UserPerm(GuildPerm.ManageMessages)] -#if GLOBAL_NADEKO +#if GLOBAL_ELLIE [OwnerOnly] #endif public async Task GenCurrency() diff --git a/src/EllieBot/Modules/Gambling/_common/RollDuelGame.cs b/src/EllieBot/Modules/Gambling/_common/RollDuelGame.cs index 1244252..24b634a 100644 --- a/src/EllieBot/Modules/Gambling/_common/RollDuelGame.cs +++ b/src/EllieBot/Modules/Gambling/_common/RollDuelGame.cs @@ -34,7 +34,7 @@ public class RollDuelGame private readonly ICurrencyService _cs; private readonly Timer _timeoutTimer; - private readonly NadekoRandom _rng = new(); + private readonly EllieRandom _rng = new(); private readonly SemaphoreSlim _locker = new(1, 1); public RollDuelGame(