Created
November 3, 2015 21:42
-
-
Save ArcticEcho/2e566850e6424d7080d8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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