public ARKHandler(IServiceProvider services)
        {
            // Initialize the email listener
            _ = new EmailListener(this);

            // Get a connection to our client
            _client = services.GetRequiredService <DiscordSocketClient>();

            // Initialize HTTP Client
            _http = new HttpClient();
        }
Esempio n. 2
0
        public ARKHandler(IServiceProvider services)
        {
            // Get a connection to our client
            _client = services.GetRequiredService <DiscordSocketClient>();

            // Initialize HTTP Client
            _http = new HttpClient();

            // Initialize Twitter Client
            _twitterClient = new TwitterClient(Config.TwitterConsumerKey, Config.TwitterConsumerSecret, Config.TwitterAccessToken, Config.TwitterAccessTokenSecret);

            // Initialize the web driver
            var options = new FirefoxOptions();

            options.AddArgument("--headless");
            _driver = new FirefoxDriver(options);
            _driver.Manage().Window.Size = new Size(825, 2500);

            // Initialize the email listener
            _ = new EmailListener(this);
        }