Imports Core.Core \'Import the core to be able to implement the Plugin interface (add the reference to Core.dll)
Public Class YourPluginName
Implements XBplgn \'Add this line, press enter and most of below will be be entered for you (Visual Studios)
Private UI As New Global.YourPluginName.UI \'UI object (a user control object)
\'Have this method EXACTLY as shown here
Public Sub loadUI(ByRef LoadToPanel As Windows.Forms.Panel) Implements XBplgn.loadUI
LoadToPanel.Controls.Add(UI.Controls(0))
End Sub
Public ReadOnly Property Name As String Implements XBplgn.Name
Get
Return "" \'Inside the quotes Enter the name of the Plugin
End Get
End Property
Public Sub ProcessCommand(Command As String) Implements XBplgn.ProcessCommand
\'Put command logic here. Commands are instructions separate from the irc messages
End Sub
Public Sub ProcessMessage(Message As Message) Implements XBplgn.ProcessMessage
\'Put Message logic here. Messages are the direct result from parsing the irc messages
End Sub
Public Function Request(Info() As Object) As Object() Implements XBplgn.Request
Return {} \'This is for other components to retrieve information from this plugin
End Function
\'Have this method EXACTLY as shown here
Public Sub unLoadUI(ByRef unLoadFromPanel As Windows.Forms.Panel) Implements XBplgn.unLoadUI
UI.Controls.Add(unLoadFromPanel)
End Sub
End Class