mirror of
https://github.com/reactos/reactos.git
synced 2024-08-26 21:28:48 +00:00
![Marc Piulachs](/assets/img/avatar_default.png)
* remove old outdated SD project files * make it use some .NET 2.0 features as generic collections and settings svn path=/trunk/; revision=31130
38 lines
906 B
C#
38 lines
906 B
C#
using System;
|
|
using System.Collections;
|
|
|
|
namespace TechBot.Library
|
|
{
|
|
public class HelpCommand : Command
|
|
{
|
|
public HelpCommand(TechBotService techBot)
|
|
: base(techBot)
|
|
{
|
|
}
|
|
|
|
public override string[] AvailableCommands
|
|
{
|
|
get { return new string[] { "help" }; }
|
|
}
|
|
|
|
public override void Handle(
|
|
MessageContext context,
|
|
string commandName,
|
|
string parameters)
|
|
{
|
|
TechBot.ServiceOutput.WriteLine(context, "I support the following commands:");
|
|
|
|
foreach (Command command in TechBot.Commands)
|
|
{
|
|
TechBot.ServiceOutput.WriteLine(context,
|
|
command.Help());
|
|
}
|
|
}
|
|
|
|
public override string Help()
|
|
{
|
|
return "!help";
|
|
}
|
|
}
|
|
}
|