Bot.Bot.Bot C# (CSharp) Method

Bot() public method

public Bot ( string configFilePath ) : System
configFilePath string
return System
        public Bot(string configFilePath)
        {
            BasicConfigurator.Configure();

            log.Info("Initalizing bot...");

            ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };

            configSource = new IniConfigSource(configFilePath);
            IConfig config = configSource.Configs["global"];

            store = new JsonPersistentStore("store.json");

            components.Add(new CommandComponent(hub, store));
            components.Add(new ProcessorComponent(hub, config));
            //components.Add(new CliComponent(hub));
            components.Add(new TaskComponent(hub, store));
            components.Add(new ClojureComponent(hub));

            irc = new IrcComponent(hub, config);
            components.Add(irc);
        }