Disabled honeypot system

This system is being a little buggy and will be fixed in the future
This commit is contained in:
Toastie (DCS Team) 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; using System.Threading.Channels;
namespace EllieBot.Modules.Administration.Honeypot; namespace EllieBot.Modules.Administration.Honeypot;
/*
public sealed class HoneyPotService : IHoneyPotService, IReadyExecutor, IExecNoCommand, IEService public sealed class HoneyPotService : IHoneyPotService, IReadyExecutor, IExecNoCommand, IEService
{ {
private readonly DbService _db; private readonly DbService _db;
@ -71,7 +71,8 @@ public sealed class HoneyPotService : IHoneyPotService, IReadyExecutor, IExecNoC
try try
{ {
Log.Information("Honeypot caught user {User} [{UserId}]", user, user.Id); 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) catch (Exception e)
{ {
@ -91,4 +92,5 @@ public sealed class HoneyPotService : IHoneyPotService, IReadyExecutor, IExecNoC
await _punishments.Writer.WriteAsync(sgu); 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; namespace EllieBot.Modules.Administration;
/*
public partial class Administration public partial class Administration
{ {
[Group] [Group]
@ -26,4 +26,5 @@ public partial class Administration
await Response().Confirm(strs.honeypot_off).SendAsync(); 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 interface IHoneyPotService
{ {
public Task<bool> ToggleHoneypotChannel(ulong guildId, ulong channelId); public Task<bool> ToggleHoneypotChannel(ulong guildId, ulong channelId);
} }
*/