private static void Main(string[] args) { IRCConfig conf = new IRCConfig(); conf.name = "LolBot"; conf.nick = "LolBot"; conf.port = 6667; conf.server = "irc.strictfp.com"; using (var bot = new IRCBot(conf)) { bot.Connect(); bot.IRCWork(); } Console.WriteLine("Bot quit/crashed"); Console.ReadLine(); }
public IRCBot(IRCConfig config) { this.config = config; }