25cefb8b6a
added v0.1 of profanity determent plugin
37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
using SharedLibrary.Interfaces;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using SharedLibrary;
|
|
|
|
namespace ProfanityDeterment
|
|
{
|
|
class Configuration : IBaseConfiguration
|
|
{
|
|
public List<string> OffensiveWords { get; set; }
|
|
public bool EnableProfanityDeterment { get; set; }
|
|
public string ProfanityWarningMessage { get; set; }
|
|
public string ProfanityKickMessage { get; set; }
|
|
public int KickAfterInfringementCount { get; set; }
|
|
|
|
public IBaseConfiguration Generate()
|
|
{
|
|
OffensiveWords = new List<string>()
|
|
{
|
|
"nigger",
|
|
"nigga",
|
|
"fuck"
|
|
};
|
|
|
|
EnableProfanityDeterment = Utilities.PromptBool("Enable profanity deterring");
|
|
ProfanityWarningMessage = "Please do not use profanity on this server";
|
|
ProfanityKickMessage = "Excessive use of profanity";
|
|
KickAfterInfringementCount = 2;
|
|
|
|
return this;
|
|
}
|
|
|
|
public string Name() => "Configuration";
|
|
}
|
|
}
|