static void Main(string[] args) { service = new IRCService(new Parser(), new P10CommandFactory()); service.Host = "127.0.0.1"; service.Port = 4400; service.Name = "services.server.name"; service.Description = "sample service"; service.Numeric = "ab"; service.Password = "******"; service.PrepareForPlugins(); plugin = new MyPlugin(service); plugin.Name = "Plugin"; plugin.MainServer = service.MainServer; plugin.CreateBot(); service.Connect(); Console.WriteLine("Press any key to stop the program"); Console.ReadKey(); }
/// <summary> /// Default constructor /// </summary> /// <param name="service"></param> public MyPlugin(IRCService service) : base(service) { }