Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace ObjectScanner
- {
- class Program
- {
- static Bot myBot;
- static void Main(string[] args)
- {
- if (args.Length < 3)
- {
- Console.WriteLine("Usage: bot.exe <first> <last> <pass>");
- return;
- }
- //create instance of the Bot class named myBot
- myBot = new Bot(args[0], args[1], args[2]);
- //handle ctrl+c event
- Console.CancelKeyPress += new ConsoleCancelEventHandler(Console_CancelKeyPress);
- //keep processing commands until ctrl+c is pressed
- string read = Console.ReadLine();
- while (read != null)
- {
- myBot.ParseCommand(read);
- read = Console.ReadLine();
- }
- }
- static void Console_CancelKeyPress(object sender, ConsoleCancelEventArgs e)
- {
- myBot.Logout();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement