5.1.2
This commit is contained in:
commit
d58c516649
16 changed files with 79 additions and 52 deletions
10
CHANGELOG.md
10
CHANGELOG.md
|
@ -2,18 +2,24 @@
|
|||
|
||||
Mostly based on [keepachangelog](https://keepachangelog.com/en/1.0.0/) except date format. a-c-f-r-o
|
||||
|
||||
## [5.1.2] - 29.06.2024
|
||||
|
||||
### Fixed
|
||||
|
||||
- Compile issues by disabling honeypot submodule for the time being
|
||||
|
||||
## [5.1.1] - 29.06.2024
|
||||
|
||||
### Added
|
||||
|
||||
- Added `.honeypot` command, which automatically softbans (ban and immediate unban) any user who posts in that channel.
|
||||
- Added `'honeypot` command, which automatically softbans (ban and immediate unban) any user who posts in that channel.
|
||||
- Useful to auto softban bots who spam every channel upon joining
|
||||
- Users who run commands or expressions won't be softbanned.
|
||||
- Users who have ban member permissions are also excluded.
|
||||
|
||||
### Fixed
|
||||
|
||||
- Fixed `.betdraw` not respecting maxbet
|
||||
- Fixed `'betdraw` not respecting maxbet
|
||||
- Fixed `'xpshop` pagination for real this time?
|
||||
|
||||
## [5.1.0] - 28.06.2024
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#nullable disable
|
||||
#nullable disable
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using EllieBot.Db.Models;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#nullable disable
|
||||
|
||||
namespace EllieBot.Db;
|
||||
|
||||
public readonly struct LevelStats
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#nullable disable
|
||||
namespace EllieBot.Db.Models;
|
||||
|
||||
|
||||
// FUTURE remove LastLevelUp from here and UserXpStats
|
||||
public class DiscordUser : DbEntity
|
||||
{
|
||||
|
|
|
@ -3,6 +3,7 @@ using System.ComponentModel.DataAnnotations.Schema;
|
|||
|
||||
namespace EllieBot.Db.Models;
|
||||
|
||||
|
||||
public class AntiRaidSetting : DbEntity
|
||||
{
|
||||
public int GuildConfigId { get; set; }
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>true</ImplicitUsings>
|
||||
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
|
||||
<Version>5.1.1</Version>
|
||||
<Version>5.1.2</Version>
|
||||
|
||||
<!-- Output/build -->
|
||||
<RunWorkingDirectory>$(MSBuildProjectDirectory)</RunWorkingDirectory>
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
@ -92,3 +93,4 @@ public sealed class HoneyPotService : IHoneyPotService, IReadyExecutor, IExecNoC
|
|||
}
|
||||
}
|
||||
}
|
||||
*/
|
|
@ -1,7 +1,7 @@
|
|||
using EllieBot.Modules.Administration.Honeypot;
|
||||
using EllieBot.Modules.Administration.Honeypot;
|
||||
|
||||
namespace EllieBot.Modules.Administration;
|
||||
|
||||
/*
|
||||
public partial class Administration
|
||||
{
|
||||
[Group]
|
||||
|
@ -27,3 +27,4 @@ public partial class Administration
|
|||
}
|
||||
}
|
||||
}
|
||||
*/
|
|
@ -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);
|
||||
}
|
||||
*/
|
|
@ -3,7 +3,7 @@
|
|||
namespace EllieBot.Modules.Administration;
|
||||
|
||||
public sealed class DummyLogCommandService : ILogCommandService
|
||||
#if GLOBAL_ELLIE
|
||||
#if GLOBAL_NADEKO
|
||||
, IEService
|
||||
#endif
|
||||
{
|
||||
|
|
|
@ -8,8 +8,8 @@ using EllieBot.Db.Models;
|
|||
namespace EllieBot.Modules.Administration;
|
||||
|
||||
public sealed class LogCommandService : ILogCommandService, IReadyExecutor
|
||||
#if !GLOBAL_ELLIE
|
||||
, IEService // don't load this service on global ellie
|
||||
#if !GLOBAL_NADEKO
|
||||
, IEService // don't load this service on global nadeko
|
||||
#endif
|
||||
{
|
||||
public ConcurrentDictionary<ulong, LogSetting> GuildLogSettings { get; }
|
||||
|
|
14
src/EllieBot/Modules/Administration/Ticket/TicketCommands.cs
Normal file
14
src/EllieBot/Modules/Administration/Ticket/TicketCommands.cs
Normal file
|
@ -0,0 +1,14 @@
|
|||
// namespace EllieBot.Modules.Administration;
|
||||
//
|
||||
// public partial class Administration
|
||||
// {
|
||||
// [Group]
|
||||
// public partial class TicketCommands : EllieModule
|
||||
// {
|
||||
// [Cmd]
|
||||
// public async Task Ticket()
|
||||
// {
|
||||
//
|
||||
// }
|
||||
// }
|
||||
// }
|
|
@ -228,7 +228,7 @@ public class UserPunishService : IEService, IReadyExecutor
|
|||
case PunishmentAction.RemoveRoles:
|
||||
return botUser.GuildPermissions.ManageRoles;
|
||||
case PunishmentAction.ChatMute:
|
||||
return botUser.GuildPermissions.ManageRoles; // adds ellie-mute role
|
||||
return botUser.GuildPermissions.ManageRoles; // adds nadeko-mute role
|
||||
case PunishmentAction.VoiceMute:
|
||||
return botUser.GuildPermissions.MuteMembers;
|
||||
case PunishmentAction.AddRole:
|
||||
|
|
Loading…
Reference in a new issue