using System.Collections.Generic;
// Using directives for plugin use.
using MeidoCommon;
using System.ComponentModel.Composition;

[Export(typeof(IMeidoHook))]
public class MyClass : IMeidoHook
{
    readonly IIrcComm irc;

    public string Prefix { get; set; }

    public string Name
    {
        get { return "MyClass"; }
    }
    public string Version
    {
        get { return "0.10"; }
    }

    public Dictionary<string,string> Help
    {
        get 
        {
            return new Dictionary<string, string>()
            {
                {"trigger", "trigger does x"}
            };
        }
    }

    [ImportingConstructor]
    public MyClass(IIrcComm ircComm)
    {
        irc = ircComm;
        irc.AddChannelMessageHandler(HandleChannelMessage);
    }

    public void HandleChannelMessage(IIrcMessage ircMessage)
    {
        // Do something
    }
}

using System.Collections.Generic;
// Using directives for plugin use.
using MeidoCommon;
using System.ComponentModel.Composition;

// IMeidoHook wants you to implement `Name`, `Version`, `Help` and the `Stop` method.
[Export(typeof(IMeidoHook))]
public class MyClass : IMeidoHook
{
    public string Name
    {
        get { return "MyClass"; }
    }
    public string Version
    {
        get { return "0.10"; }
    }

    public Dictionary<string,string> Help
    {
        get 
        {
            return new Dictionary<string, string>()
            {
                {"example", "example [args] - does something."}
            };
        }
    }

    public void Stop()
    {}

    [ImportingConstructor]
    public MyClass(IIrcComm irc, IMeidoComm meido)
    {
        meido.RegisterTrigger("example", ExampleTrigger);
    }

    public void ExampleTrigger(IIrcMessage ircMessage)
    {
        // Do something, like:
        ircMessage.Reply("Example trigger triggered.");
    }
}
Update so it's once again in line with the interface and preferred paradigm (RegisterTrigger).
Update so it's once again in line with the interface and preferred
paradigm (RegisterTrigger).