Example #1
0
        public Services(DiscordSocketClient discordClient, string mongoPasswd)
        {
            this.discordClient = discordClient;

            Log.Info("Initializing services...");

            dbConnector       = new DatabaseConnector(mongoPasswd);
            letterParser      = new LetterParser();
            slotmachine       = new Slotmachine(dbConnector);
            weatherService    = new WeatherService();
            papaModule        = new PapaModule(discordClient);
            websiteScraper    = new WebsiteScraper();
            miasmaInfoservice = new MiasmaInfoservice(websiteScraper);

            Log.Info("Done.");
            Utils.MarkStartupTime();
        }
Example #2
0
 public MiasmaInfoservice(WebsiteScraper websiteScraper)
 {
     this.websiteScraper = websiteScraper ?? throw new ArgumentNullException("webSitescraper");
 }