Exemple #1
0
        public IRCBot(IRCClientConsole client)
        {
            Client = client;
            IRC    = client.IRC;
            Info   = client.Info;

            IRC.Message     += irc_Message;
            IRC.WhoisResult += irc_WhoisResult;
            IRC.UserJoined  += irc_UserJoined;
        }
Exemple #2
0
        public IRCBot(IRCClientConsole client)
        {
            Client = client;
            IRC = client.IRC;
            Info = client.Info;

            IRC.Message += irc_Message;
            IRC.WhoisResult += irc_WhoisResult;
            IRC.UserJoined += irc_UserJoined;
        }
Exemple #3
0
 public IRC(string server, int port, string nickname, string username, string realname, bool invisible)
 {
     Info = new IRCInfo()
     {
         Server = server,
         Port = port,
         Nickname = nickname,
         Username = username,
         Realname = realname,
         Invisible = invisible
     };
 }
Exemple #4
0
        public IRCClientForm(IRCInfo info)
        {
            InitializeComponent();
            Icon = ShareXResources.Icon;
            ((ToolStripDropDownMenu)tsmiColors.DropDown).ShowImageMargin = false;

            Info = info;
            pgSettings.SelectedObject = Info;

            IRC = new IRC(Info);
            IRC.Disconnected += IRC_Disconnected;
            IRC.Output += IRC_Output;
            IRC.Message += IRC_Message;
            IRC.UserJoined += IRC_UserJoined;
        }
Exemple #5
0
        public IRCClientForm(IRCInfo info)
        {
            InitializeComponent();
            rtbOutput.AddContextMenu();
            tsmiColors.HideImageMargin();

            tabManager = new TabManager(tcMessages);

            Info = info;
            pgSettings.SelectedObject = Info;

            IRC = new IRC(Info);
            IRC.Disconnected += IRC_Disconnected;
            IRC.Output += IRC_Output;
            IRC.ErrorOutput += IRC_ErrorOutput;
            IRC.Message += IRC_Message;
            IRC.UserJoined += IRC_UserJoined;
        }
Exemple #6
0
        private static void Main(string[] args)
        {
            IRCInfo info;

            if (File.Exists(DefaultSettingsPath))
            {
                info = Settings.Load<IRCInfo>(DefaultSettingsPath);
            }
            else
            {
                info = new IRCInfo();
            }

            IRCClientConsole client = new IRCClientConsole(info);
            IRCBot bot = new IRCBot(client);
            bot.Start();

            Settings.Save(info, DefaultSettingsPath);
        }
Exemple #7
0
        private static void Main(string[] args)
        {
            IRCInfo info;

            if (File.Exists(DefaultSettingsPath))
            {
                info = Settings.Load <IRCInfo>(DefaultSettingsPath);
            }
            else
            {
                info = new IRCInfo();
            }

            IRCClientConsole client = new IRCClientConsole(info);
            IRCBot           bot    = new IRCBot(client);

            bot.Start();

            Settings.Save(info, DefaultSettingsPath);
        }
Exemple #8
0
 public IRC(IRCInfo info)
 {
     Info = info;
 }
Exemple #9
0
 public IRC()
 {
     Info = new IRCInfo();
 }