Skip to content

Instantly share code, notes, and snippets.

@ArcticEcho
Created November 3, 2015 21:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ArcticEcho/2e566850e6424d7080d8 to your computer and use it in GitHub Desktop.
Save ArcticEcho/2e566850e6424d7080d8 to your computer and use it in GitHub Desktop.
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