fix: create guild config in log cleanup command

This commit is contained in:
spiral 2021-12-06 04:02:25 -05:00
parent 32bea51e18
commit 56e266190f
No known key found for this signature in database
GPG Key ID: A6059F0CA0E1BD31

View File

@ -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"))
{