Beispiel #1
0
 public VerificationCodeMessageProcessor(VerificationCodeManager verificationCodeManager, DiscordClient discordClient)
 {
     this.verificationCodeManager  = verificationCodeManager;
     this.discordClient            = discordClient;
     this.ShouldContinueProcessing = false;
     this.MessageShouldTargetBot   = true;
     this.AllowedMessageSources    = new List <MessageSource> {
         MessageSource.User
     };
 }
        public AuthenticationMessageProcessor(VerificationCodeManager verificationCodeManager, IMailService mailService)
        {
            this.verificationCodeManager = verificationCodeManager;
            this.mailService             = mailService;

            this.ShouldContinueProcessing = false;
            this.MessageShouldTargetBot   = true;
            this.AllowedMessageSources    = new List <MessageSource> {
                MessageSource.User
            };
            this.regex = new Regex("(\\S*@stud.hslu.ch)", RegexOptions.IgnoreCase);
        }