Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using ChatExchangeDotNet;
namespace Hatman.Commands
{
class CommandName : ICommand
{
private readonly Regex ptn = new Regex(@"Command regex here", Extensions.RegOpts);
public Regex CommandPattern
{
get
{
return ptn;
}
}
public string Description
{
get
{
return "Command desc here";
}
}
public string Usage
{
get
{
return "How to trigger the command";
}
}
public void ProcessMessage(Message msg, ref Room rm)
{
var message = // A string.
rm.PostReplyFast(msg, message);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.