fix: fixed honeypot not unbanning and pruning

This commit is contained in:
Kwoth
2024-06-29 01:24:14 +00:00
parent 2ca141810c
commit 30aa8e8186
2 changed files with 16 additions and 1 deletions

View File

@@ -71,7 +71,8 @@ public sealed class HoneyPotService : IHoneyPotService, IReadyExecutor, IExecNoC
try
{
Log.Information("Honeypot caught user {User} [{UserId}]", user, user.Id);
await user.BanAsync();
await user.BanAsync(pruneDays: 1);
await user.Guild.RemoveBanAsync(user.Id);
}
catch (Exception e)
{

View File

@@ -0,0 +1,14 @@
namespace NadekoBot.Modules.Administration;
public partial class Administration
{
[Group]
public partial class TicketCommands : NadekoModule
{
[Cmd]
public async Task Ticket()
{
}
}
}