mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 16:31:07 +08:00
- Moved commands outside TechBot.Library to TechBot.Commands.Common and TechBot.Commands.MSDN except for Command base classes
- Made TechBot more configurable through .config files - Code refactoring - Removed automatic parameter parsing support to make everyone happy svn path=/trunk/; revision=33586
This commit is contained in:
@@ -28,6 +28,8 @@ namespace TechBot.Library
|
||||
{
|
||||
Assembly assPlugin = Assembly.LoadFile(sFile);
|
||||
|
||||
Console.WriteLine("Loading plugins from : {0}", assPlugin.Location);
|
||||
|
||||
if (assPlugin != null)
|
||||
{
|
||||
foreach (Type pluginType in assPlugin.GetTypes())
|
||||
@@ -36,6 +38,12 @@ namespace TechBot.Library
|
||||
{
|
||||
if (pluginType.IsAbstract == false)
|
||||
{
|
||||
CommandBuilder cmdBuilder = new CommandBuilder(pluginType);
|
||||
|
||||
Console.WriteLine("{0}:{1}",
|
||||
cmdBuilder.Name,
|
||||
cmdBuilder.Description);
|
||||
|
||||
//Add it to the list.
|
||||
Commands.Add(new CommandBuilder(pluginType));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user