Disabled honeypot system

This system is being a little buggy and will be fixed in the future
This commit is contained in:
Toastie 2024-06-29 17:49:10 +12:00
parent c377ee2df7
commit 5e7c75a498
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4
3 changed files with 13 additions and 9 deletions

View file

@ -5,7 +5,7 @@ using EllieBot.Db.Models;
using System.Threading.Channels;
namespace EllieBot.Modules.Administration.Honeypot;
/*
public sealed class HoneyPotService : IHoneyPotService, IReadyExecutor, IExecNoCommand, IEService
{
private readonly DbService _db;
@ -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)
{
@ -91,4 +92,5 @@ public sealed class HoneyPotService : IHoneyPotService, IReadyExecutor, IExecNoC
await _punishments.Writer.WriteAsync(sgu);
}
}
}
}
*/

View file

@ -1,7 +1,7 @@
using EllieBot.Modules.Administration.Honeypot;
using EllieBot.Modules.Administration.Honeypot;
namespace EllieBot.Modules.Administration;
/*
public partial class Administration
{
[Group]
@ -26,4 +26,5 @@ public partial class Administration
await Response().Confirm(strs.honeypot_off).SendAsync();
}
}
}
}
*/

View file

@ -1,6 +1,7 @@
namespace EllieBot.Modules.Administration.Honeypot;
namespace EllieBot.Modules.Administration.Honeypot;
/*
public interface IHoneyPotService
{
public Task<bool> ToggleHoneypotChannel(ulong guildId, ulong channelId);
}
}
*/