[PSDK]
[reactos.git] / irc / TechBot / TechBot.Console / Main.cs
1 using System;
2 using System.Configuration;
3 using TechBot.Library;
4
5 namespace TechBot.Console
6 {
7 class MainClass
8 {
9 public static void Main(string[] args)
10 {
11 TechBotService m_TechBot = null;
12
13 if (args.Length > 0 && args[0].ToLower().Equals("irc"))
14 {
15 m_TechBot = new IrcTechBotService(Settings.Default.IRCServerHostName,
16 Settings.Default.IRCServerHostPort,
17 Settings.Default.IRCChannelNames,
18 Settings.Default.IRCBotName,
19 Settings.Default.IRCBotPassword);
20 }
21 else
22 {
23 m_TechBot = new ConsoleTechBotService();
24 }
25
26 m_TechBot.Run();
27 }
28 }
29 }