private static void Main(string[] args)
        {
            if (!SanityCheck( ))
            {
                Console.WriteLine("The bot has failed to complete its sanity check...\r\nPlease press any key to exit the Bot...");
                Console.ReadKey(true);
                return;
            }

            // Start the timer on ground zero
            global::BlizzetaZero.Kernel.Global.BeginUptime( );

            // Auth.Authenticate(); Thread t = new Thread ( new ThreadStart ( LaunchGamePanel ) );
            // t.Start ( );
            Console.Title        = Global.Title;
            Console.WindowWidth += 60;

            _settings = new Settings( );
            CoreCommands.IncludeBuiltInCommands( );
            SetCharSet( );
            CarpeDiem( );

            Irc irc = new Irc(Global.Nick,
                              Global.Realname,
                              Global.Username,
                              "",
                              Global.IrcServer,
                              Global.ServerPassword,
                              Global.Port,
                              RFC1459.ReplyCode.ERR_UNKNOWNMODE,
                              ConsoleColor.Green,
                              "#blizzardothegreat",
                              "",
                              "blizzardothegreat",
                              "#blizzetabot",
                              "");

            try
            {
                irc.OnMotd += irc_OnMotd;
                irc.Connect(irc.Host);
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
            }
        }
示例#2
0
        private static void Main(string[] args)
        {
            Console.WindowWidth += 60;

            CoreCommands.IncludeBuiltInCommands( );
            SetCharSet( );
            Irc irc = new Irc("BlizzetaZero", "Blizzeta Zero Bot 7.0", "Blizzeta", "#Blizzeta");

            try
            {
                irc.Colour  = ConsoleColor.Green;
                irc.OnMotd += irc_OnMotd;
                irc.Connect("irc.ringoflightning.net");
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
            }
        }
示例#3
0
        private static void Main( string[] args )
        {
            Console.WindowWidth += 60;

            CoreCommands.IncludeBuiltInCommands ( );
            SetCharSet ( );
            Irc irc = new Irc ( "BlizzetaZero", "Blizzeta Zero Bot 7.0", "Blizzeta", "#Blizzeta" );

            try
            {
                irc.Colour = ConsoleColor.Green;
                irc.OnMotd += irc_OnMotd;
                irc.Connect ( "irc.ringoflightning.net" );
            }
            catch ( Exception e )
            {
                Console.WriteLine ( e.Message );
            }
        }
        private static void Main ( string[] args )
        {
            if ( !SanityCheck ( ) )
            {
                Console.WriteLine ( "The bot has failed to complete its sanity check...\r\nPlease press any key to exit the Bot..." );
                Console.ReadKey ( true );
                return;
            }

            // Start the timer on ground zero 
            global::BlizzetaZero.Kernel.Global.BeginUptime ( );

            // Auth.Authenticate(); Thread t = new Thread ( new ThreadStart ( LaunchGamePanel ) );
            // t.Start ( );
            Console.Title = Global.Title;
            Console.WindowWidth += 60;

            _settings = new Settings ( );
            CoreCommands.IncludeBuiltInCommands ( );
            SetCharSet ( );
            CarpeDiem ( );

            Irc irc = new Irc ( Global.Nick,
                Global.Realname,
                Global.Username,
                "",
                Global.IrcServer,
                Global.ServerPassword,
                Global.Port,
                RFC1459.ReplyCode.ERR_UNKNOWNMODE,
                ConsoleColor.Green,
                "#blizzardothegreat",
                "",
                "blizzardothegreat",
                "#blizzetabot",
                "" );
            try
            {
                irc.OnMotd += irc_OnMotd;
                irc.Connect ( irc.Host );
            }
            catch ( Exception e )
            {
                Console.WriteLine ( e.Message );
            }
        }