From 56e266190f062fcf7777f2b7a8a2aa0de161c8be Mon Sep 17 00:00:00 2001 From: spiral Date: Mon, 6 Dec 2021 04:02:25 -0500 Subject: [PATCH] fix: create guild config in log cleanup command --- PluralKit.Bot/Commands/ServerConfig.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PluralKit.Bot/Commands/ServerConfig.cs b/PluralKit.Bot/Commands/ServerConfig.cs index a20d17aa..0e4f3cac 100644 --- a/PluralKit.Bot/Commands/ServerConfig.cs +++ b/PluralKit.Bot/Commands/ServerConfig.cs @@ -188,6 +188,8 @@ public class ServerConfig var botList = string.Join(", ", _cleanService.Bots.Select(b => b.Name).OrderBy(x => x.ToLowerInvariant())); + var guild = await _repo.GetGuild(ctx.Guild.Id); + bool newValue; if (ctx.Match("enable", "on", "yes")) {