mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
5471b412d9
There are three option values:
- Disabled: module does nothing (wow).
- Remove: module removes matching messages and sends temporary message
to instruct user what to do.
- Upload: module uploads detected code to configured Haste Server.
21 lines
725 B
C#
21 lines
725 B
C#
using Kruzya.TelegramBot.Core.Options;
|
|
|
|
namespace West.TelegramBot.CodeWatcher.Options;
|
|
|
|
public class CodeWatcherMode : AbstractOption<CodeWatcherMode, string>
|
|
{
|
|
public override string OptionId => "codeWatcherMode";
|
|
public override string OptionName => "CodeWatcher™ mode";
|
|
public override OptionType OptionType => OptionType.Select;
|
|
public override string DefaultValue => "remove";
|
|
|
|
public CodeWatcherMode(IOptionProvider optionProvider) : base(optionProvider)
|
|
{
|
|
ChoiceList.AddRange(new []
|
|
{
|
|
new SelectChoice("disabled", "Disabled", "D"),
|
|
new SelectChoice("remove", "Remove", "R"),
|
|
new SelectChoice("upload", "Upload", "U")
|
|
});
|
|
}
|
|
} |