mirror of
https://github.com/reactos/reactos.git
synced 2024-08-21 02:43:48 +00:00
![Marc Piulachs](/assets/img/avatar_default.png)
- 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
878 B
C#
29 lines
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();
|
|
}
|
|
}
|
|
} |