2017-07-17 19:42:36 +00:00
|
|
|
|
using System.Collections.Concurrent;
|
|
|
|
|
using Discord;
|
|
|
|
|
using NadekoBot.Common.Collections;
|
2017-10-13 04:14:54 +00:00
|
|
|
|
using NadekoBot.Core.Services.Database.Models;
|
2017-05-27 17:42:23 +00:00
|
|
|
|
|
2017-07-17 19:42:36 +00:00
|
|
|
|
namespace NadekoBot.Modules.Administration.Common
|
2017-05-27 17:42:23 +00:00
|
|
|
|
{
|
|
|
|
|
public enum ProtectionType
|
|
|
|
|
{
|
|
|
|
|
Raiding,
|
|
|
|
|
Spamming,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class AntiRaidStats
|
|
|
|
|
{
|
|
|
|
|
public AntiRaidSetting AntiRaidSettings { get; set; }
|
|
|
|
|
public int UsersCount { get; set; }
|
|
|
|
|
public ConcurrentHashSet<IGuildUser> RaidUsers { get; set; } = new ConcurrentHashSet<IGuildUser>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class AntiSpamStats
|
|
|
|
|
{
|
|
|
|
|
public AntiSpamSetting AntiSpamSettings { get; set; }
|
|
|
|
|
public ConcurrentDictionary<ulong, UserSpamStats> UserStats { get; set; }
|
|
|
|
|
= new ConcurrentDictionary<ulong, UserSpamStats>();
|
|
|
|
|
}
|
|
|
|
|
}
|