Support multiple channels

svn path=/trunk/; revision=13604
This commit is contained in:
Casper Hornstrup 2005-02-16 21:07:55 +00:00
parent 6536947239
commit 70350430a5
15 changed files with 251 additions and 109 deletions

View file

@ -21,12 +21,17 @@ namespace TechBot.Library
new string[] { "help" });
}
public void Handle(string commandName,
public void Handle(MessageContext context,
string commandName,
string parameters)
{
serviceOutput.WriteLine("I support the following commands:");
serviceOutput.WriteLine(context,
"I support the following commands:");
foreach (ICommand command in commands)
serviceOutput.WriteLine(command.Help());
{
serviceOutput.WriteLine(context,
command.Help());
}
}
public string Help()