public void UserInitialize(Bot.ComponentList ComponentList) { // Hello this.Name = this.GetType().Name; ModelCustomizer.AddModelCustomization(Hooks.ModelCustomizer.OnModelCreating); this.ServerQueryConnection = ComponentList[typeof(Core.ServerQueryConnection.ServerQueryConnection).Name] as Core.ServerQueryConnection.ServerQueryConnection; this.ServerQueryAddon = ComponentList[typeof(Core.ServerQueryShell.ServerQueryShell).Name] as Core.ServerQueryShell.ServerQueryShell; this.testAddon = ComponentList[typeof(TestAddon).Name] as TestAddon; // Native serverquery events are in queryRunner object. this.ServerQueryConnection.BotCommandAttempt += ServerQueryConnection_BotCommandReceived; this.ServerQueryConnection.QueryRunner.Notifications.ClientMoved += Notifications_ClientMoved; }
public void UserInitialize(Bot.ComponentList ComponentList) { // Hello this.Name = this.GetType().Name; ModelCustomizer.AddModelCustomization(Hooks.ModelCustomizer.OnModelCreating); this.ServerQueryConnection = ComponentList[typeof(Core.ServerQueryConnection.ServerQueryConnection).Name] as Core.ServerQueryConnection.ServerQueryConnection; this.testAddon = ComponentList[typeof(TestAddon.TestAddon).Name] as TestAddon.TestAddon; // Native serverquery events are in queryRunner object. this.ServerQueryConnection.QueryRunner.Notifications.ClientMoved += Notifications_ClientMoved; this.ServerQueryConnection.QueryRunner.Notifications.ClientJoined += onClientConnect; BotHasReturnedMessage(); //Tell everyone you're back }