From 3e35c6ffc7338847b3f52ee7f0b76dc15b98d824 Mon Sep 17 00:00:00 2001
From: Toastie <toastie@toastiet0ast.com>
Date: Sat, 14 Sep 2024 01:29:48 +1200
Subject: [PATCH] Updated Bot.cs with a fix that stopped builds
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Why was this a glitch? ¯\_(ツ)_/¯
---
 src/EllieBot/Bot.cs | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/EllieBot/Bot.cs b/src/EllieBot/Bot.cs
index d6101ea..af69cee 100644
--- a/src/EllieBot/Bot.cs
+++ b/src/EllieBot/Bot.cs
@@ -90,21 +90,17 @@ public sealed class Bot : IBot
 
     public IReadOnlyList<ulong> GetCurrentGuildIds()
         => Client.Guilds.Select(x => x.Id).ToList().AsReadOnly();
-        => Client.Guilds.Select(x => x.Id).ToList().AsReadOnly();
 
-    private async Task AddServices()
     private async Task AddServices()
     {
         var startingGuildIdList = GetCurrentGuildIds().ToList();
         var startTime = Stopwatch.GetTimestamp();
         var bot = Client.CurrentUser;
 
-        await using (var uow = _db.GetDbContext())
         await using (var uow = _db.GetDbContext())
         {
             AllGuildConfigs = await uow.GuildConfigs.GetAllGuildConfigs(startingGuildIdList);
             uow.EnsureUserCreated(bot.Id, bot.Username, bot.Discriminator, bot.AvatarId);
-            AllGuildConfigs = await uow.GuildConfigs.GetAllGuildConfigs(startingGuildIdList);
         }
 
         // var svcs = new StandardKernel(new NinjectSettings()
@@ -272,7 +268,6 @@ public sealed class Bot : IBot
         try
         {
             await AddServices();
-            await AddServices();
         }
         catch (Exception ex)
         {