Guest User

Untitled

a guest
May 7th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.00 KB | None | 0 0
  1.             IFcEngine egBot = new FcEngine();
  2.             egBot.AddModule<IFcCore>(new FcCore());
  3.  
  4.             IZone zone = egBot.AddModule<IZone>(new Zone());
  5.             zone.IPAddress = "66.235.184.102";
  6.             zone.Port = 7900;
  7.             zone.Connected += new ZoneConnectedHandle(zone_Connected);
  8.             zone.Disconnected += new ZoneDisconnectedHandle(zone_Disconnected);
  9.  
  10.             ILogin login = egBot.AddModule<ILogin>(new Login());
  11.             login.UserName = "FcBot";
  12.             login.Password = "rushmoresucks";
  13.             login.LoginResponse += new LoginResponseHandle(login_LoginResponse);
  14.  
  15.             //-----------------------------------
  16.             // -- Adding in the Hello World Module --
  17.             egBot.AddModule<HelloWorld>(new HelloWorld());
  18.             //egBot.AddModule<BingTranslator>(new BingTranslator());
  19.             //---------------------------------------------
  20.  
  21.             egBot.LoadAllUnloadedModules();
  22.             //Start
  23.             egBot.Start();
Add Comment
Please, Sign In to add comment