mirror of
https://github.com/reactos/reactos.git
synced 2024-11-03 21:34:00 +00:00
ac77d9d3a6
- Made TechBot more configurable through .config files - Code refactoring - Removed automatic parameter parsing support to make everyone happy svn path=/trunk/; revision=33586
29 lines
No EOL
878 B
C#
29 lines
No EOL
878 B
C#
using System;
|
|
using System.Configuration;
|
|
using TechBot.Library;
|
|
|
|
namespace TechBot.Console
|
|
{
|
|
class MainClass
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
TechBotService m_TechBot = null;
|
|
|
|
if (args.Length > 0 && args[0].ToLower().Equals("irc"))
|
|
{
|
|
m_TechBot = new IrcTechBotService(Settings.Default.IRCServerHostName,
|
|
Settings.Default.IRCServerHostPort,
|
|
Settings.Default.IRCChannelNames,
|
|
Settings.Default.IRCBotName,
|
|
Settings.Default.IRCBotPassword);
|
|
}
|
|
else
|
|
{
|
|
m_TechBot = new ConsoleTechBotService();
|
|
}
|
|
|
|
m_TechBot.Run();
|
|
}
|
|
}
|
|
} |