static void Main(string[] args) { IrcBot Program = new IrcBot(); Program.LoadArguments(args); Program.GetData(); }
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(); }
public override void Initialize(IrcBot.IrcBot ircBot, XmlNode pluginSettings) { throw new NotImplementedException(); }
static void Main( string[] args ) { bot = new IrcBot(); new Thread( new ThreadStart( ReadCommands ) ).Start(); }
public ConsoleStarter() { Bot = new IrcBot(this); }
protected override void OnStart(string[] args) { LogInformation("IrcBot Service Started"); IrcBot = new IrcBot(this); ThreadStart threadStarter = IrcBot.Initialize; _WorkerThread = new Thread(threadStarter); _WorkerThread.Start(); }