private static void Main(string[] args) { IRCConfig conf = new IRCConfig(); conf.name = "BOTNAME"; conf.nick = "cthulhucultist_bot"; conf.port = 6667; conf.channel = "#comrade_nekobear"; conf.server = "irc.twitch.tv"; conf.suspend = 10; //default time 10 conf.pass = "******"; using (var bot = new IRCBot(conf)) { conf.loadWords(); conf.joined = false; bot.Connect(); bot.IRCWork(); } Console.WriteLine("Bot quit/crashed"); Console.ReadLine(); }
private static void Main(string[] args) { IRCConfig conf = new IRCConfig(); conf.port = 6667; conf.server = "irc.twitch.tv"; using (var bot = new IRCBot(conf)) { conf.loadWords(); conf.loadPrefs(); conf.loadWarns(); conf.loadRegulars(); conf.joined = false; bot.Connect(); bot.IRCWork(); } conf.saveWarns(); conf.saveWords(); Console.WriteLine("Bot quit/crashed"); Console.ReadLine(); }