コード例 #1
0
ファイル: IrcBot.cs プロジェクト: SPDevDE/IrcBot
        static void Main(string[] args)
        {
            IrcBot Program = new IrcBot();

            Program.LoadArguments(args);
            Program.GetData();
        }
コード例 #2
0
ファイル: IrcBotSettings.cs プロジェクト: krishemenway/IrcBot
        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();
        }
コード例 #3
0
ファイル: TopicPlugin.cs プロジェクト: krishemenway/IrcBot
 public override void Initialize(IrcBot.IrcBot ircBot, XmlNode pluginSettings)
 {
     throw new NotImplementedException();
 }
コード例 #4
0
ファイル: Program.cs プロジェクト: MikeJ83/TF2-PUG-Bot
        static void Main( string[] args )
        {
            bot = new IrcBot();

            new Thread( new ThreadStart( ReadCommands ) ).Start();
        }
コード例 #5
0
ファイル: Program.cs プロジェクト: krishemenway/IrcBot
 public ConsoleStarter()
 {
     Bot = new IrcBot(this);
 }
コード例 #6
0
ファイル: Program.cs プロジェクト: krishemenway/IrcBot
        protected override void OnStart(string[] args)
        {
            LogInformation("IrcBot Service Started");

            IrcBot = new IrcBot(this);

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