Example #1
0
        static void Main(string[] args)
        {
            IrcBot Program = new IrcBot();

            Program.LoadArguments(args);
            Program.GetData();
        }
Example #2
0
        public IrcBotSettings(string settingsConfigFile, IrcBot bot)
        {
            Bot = bot;
            Settings = new Dictionary<string, string>(StringComparer.CurrentCultureIgnoreCase);
            Channels = new List<string>();
            SettingsFile.Load(settingsConfigFile);

            if (SettingsFile.DocumentElement == null)
                throw new Exception("No Root Document Element defined.");

            SettingsHeadNode = SettingsFile.DocumentElement;

            LoadChannels();
            LoadSettings();
        }
Example #3
0
 public override void Initialize(IrcBot.IrcBot ircBot, XmlNode pluginSettings)
 {
     throw new NotImplementedException();
 }
Example #4
0
        static void Main( string[] args )
        {
            bot = new IrcBot();

            new Thread( new ThreadStart( ReadCommands ) ).Start();
        }
Example #5
0
 public ConsoleStarter()
 {
     Bot = new IrcBot(this);
 }
Example #6
0
        protected override void OnStart(string[] args)
        {
            LogInformation("IrcBot Service Started");

            IrcBot = new IrcBot(this);

            ThreadStart threadStarter = IrcBot.Initialize;
            _WorkerThread = new Thread(threadStarter);
            _WorkerThread.Start();
        }