Splits ChatCommands.cs into a series of files

This commit is contained in:
Cyberboss
2017-10-24 14:12:41 -04:00
parent 6b31504baf
commit aa6e83ab1b
11 changed files with 338 additions and 291 deletions
@@ -0,0 +1,31 @@
using System.Collections.Generic;
namespace TGServerService.ChatCommands
{
/// <summary>
/// Retrieve the current service version
/// </summary>
sealed class VersionCommand : ChatCommand
{
/// <summary>
/// Construct a <see cref="VersionCommand"/>
/// </summary>
public VersionCommand()
{
Keyword = "version";
}
/// <inheritdoc />
protected override ExitCode Run(IList<string> parameters)
{
OutputProc(Instance.Version());
return ExitCode.Normal;
}
/// <inheritdoc />
public override string GetHelpText()
{
return "Gets the running service version";
}
}
}